diff options
author | Brad King <brad.king@kitware.com> | 2023-03-14 21:11:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-03-15 14:18:41 (GMT) |
commit | 43e973eba2681788c7acf7a4fcdf261bcf6a622a (patch) | |
tree | d46cab93c35d8b3b92613fb919c5448c6881dbd6 /Source/cmLocalGenerator.cxx | |
parent | 93afe804ce4949823dc4521d555811720afd7783 (diff) | |
download | CMake-43e973eba2681788c7acf7a4fcdf261bcf6a622a.zip CMake-43e973eba2681788c7acf7a4fcdf261bcf6a622a.tar.gz CMake-43e973eba2681788c7acf7a4fcdf261bcf6a622a.tar.bz2 |
cmGeneratorTarget: Pass language to GetAppleArchs when possible
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 6fc4597..01e4241 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -1873,7 +1873,7 @@ void cmLocalGenerator::AddArchitectureFlags(std::string& flags, { // Only add Apple specific flags on Apple platforms if (target->IsApple() && this->EmitUniversalBinaryFlags) { - std::vector<std::string> archs = target->GetAppleArchs(config); + std::vector<std::string> archs = target->GetAppleArchs(config, lang); if (!archs.empty() && (lang == "C" || lang == "CXX" || lang == "OBJC" || lang == "OBJCXX" || lang == "ASM")) { @@ -2593,7 +2593,7 @@ void cmLocalGenerator::AddPchDependencies(cmGeneratorTarget* target) std::vector<std::string> architectures; if (!this->GetGlobalGenerator()->IsXcode()) { - architectures = target->GetAppleArchs(config); + architectures = target->GetAppleArchs(config, lang); } if (architectures.empty()) { architectures.emplace_back(); |