summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-12-07 15:28:11 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-12-07 15:28:18 (GMT)
commitafd495decdc0d4bca5b0eadebdb8850f8f634be3 (patch)
tree2d0e91d1625ec3c1c0d60c2212823b4f8ff34d87 /Source/cmLocalGenerator.cxx
parenta37ef1b3d476a722afd828d5eeb0ec0ee8a3b010 (diff)
parentfcabf4a47e0c441ff80fad8f34e388b16738bd33 (diff)
downloadCMake-afd495decdc0d4bca5b0eadebdb8850f8f634be3.zip
CMake-afd495decdc0d4bca5b0eadebdb8850f8f634be3.tar.gz
CMake-afd495decdc0d4bca5b0eadebdb8850f8f634be3.tar.bz2
Merge topic 'asm_arch'
fcabf4a47e macOS: Add architecture flags only for native ASM dialect Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5572
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 f582701..d9b7926 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -1876,7 +1876,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 ";