diff options
author | Raul Tambre <raul@tambre.ee> | 2020-12-04 15:17:02 (GMT) |
---|---|---|
committer | Raul Tambre <raul@tambre.ee> | 2020-12-04 15:29:14 (GMT) |
commit | fcabf4a47e0c441ff80fad8f34e388b16738bd33 (patch) | |
tree | 9e7951d7b46a20fd4217dc7534f045e112407999 /Source | |
parent | 1525385b20bdfbdb8f82d3f46ec1b8006605c91f (diff) | |
download | CMake-fcabf4a47e0c441ff80fad8f34e388b16738bd33.zip CMake-fcabf4a47e0c441ff80fad8f34e388b16738bd33.tar.gz CMake-fcabf4a47e0c441ff80fad8f34e388b16738bd33.tar.bz2 |
macOS: Add architecture flags only for native ASM dialect
ASM dialects like NASM have languages names such as ASM_NASM.
However such ASM dialects don't support the architecture flags, so match only
the full name.
Fixes #21553.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 65ddf95..61e7857 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -1879,7 +1879,7 @@ void cmLocalGenerator::AddArchitectureFlags(std::string& flags, target->GetAppleArchs(config, archs); if (!archs.empty() && (lang == "C" || lang == "CXX" || lang == "OBJ" || lang == "OBJCXX" || - cmHasLiteralPrefix(lang, "ASM"))) { + lang == "ASM")) { for (std::string const& arch : archs) { if (filterArch.empty() || filterArch == arch) { flags += " -arch "; |