mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 02:39:48 -06:00
5
Help/release/dev/asm-osx-architectures.rst
Normal file
5
Help/release/dev/asm-osx-architectures.rst
Normal file
@@ -0,0 +1,5 @@
|
||||
asm-osx-architectures
|
||||
---------------------
|
||||
|
||||
* The :prop_tgt:`OSX_ARCHITECTURES` target property is now respected for the
|
||||
``ASM`` language.
|
||||
@@ -1875,8 +1875,9 @@ void cmLocalGenerator::AddArchitectureFlags(std::string& flags,
|
||||
if (this->Makefile->IsOn("APPLE") && this->EmitUniversalBinaryFlags) {
|
||||
std::vector<std::string> archs;
|
||||
target->GetAppleArchs(config, archs);
|
||||
if (!archs.empty() && !lang.empty() &&
|
||||
(lang[0] == 'C' || lang[0] == 'F' || lang[0] == 'O')) {
|
||||
if (!archs.empty() &&
|
||||
(lang == "C" || lang == "CXX" || lang == "OBJ" || lang == "OBJCXX" ||
|
||||
cmHasLiteralPrefix(lang, "ASM"))) {
|
||||
for (std::string const& arch : archs) {
|
||||
if (filterArch.empty() || filterArch == arch) {
|
||||
flags += " -arch ";
|
||||
|
||||
Reference in New Issue
Block a user