summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorRaul Tambre <raul@tambre.ee>2020-12-04 15:17:02 (GMT)
committerRaul Tambre <raul@tambre.ee>2020-12-04 15:29:14 (GMT)
commitfcabf4a47e0c441ff80fad8f34e388b16738bd33 (patch)
tree9e7951d7b46a20fd4217dc7534f045e112407999 /Source/cmLocalGenerator.cxx
parent1525385b20bdfbdb8f82d3f46ec1b8006605c91f (diff)
downloadCMake-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/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx2
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 ";