diff options
author | Brad King <brad.king@kitware.com> | 2023-03-14 17:01:45 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-03-15 10:11:37 -0400 |
commit | 93afe804ce4949823dc4521d555811720afd7783 (patch) | |
tree | 44a3c3a094b1df4a25ddc9aec5bea238d7ba96b2 /Source/cmNinjaTargetGenerator.cxx | |
parent | 1ec4c6579117634ddb20962cdb63313dbf79887e (diff) | |
download | cmake-93afe804ce4949823dc4521d555811720afd7783.tar.gz |
cmGeneratorTarget: Convert GetAppleArchs output argument to return value
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaTargetGenerator.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx index dc56142dc7..ce5e501c77 100644 --- a/Source/cmNinjaTargetGenerator.cxx +++ b/Source/cmNinjaTargetGenerator.cxx @@ -169,9 +169,9 @@ std::string cmNinjaTargetGenerator::ComputeFlagsForObject( cmSourceFile const* source, const std::string& language, const std::string& config) { - std::vector<std::string> architectures; std::unordered_map<std::string, std::string> pchSources; - this->GeneratorTarget->GetAppleArchs(config, architectures); + std::vector<std::string> architectures = + this->GeneratorTarget->GetAppleArchs(config); if (architectures.empty()) { architectures.emplace_back(); } @@ -1390,8 +1390,8 @@ void cmNinjaTargetGenerator::WriteObjectBuildStatement( // Add precompile headers dependencies std::vector<std::string> depList; - std::vector<std::string> architectures; - this->GeneratorTarget->GetAppleArchs(config, architectures); + std::vector<std::string> architectures = + this->GeneratorTarget->GetAppleArchs(config); if (architectures.empty()) { architectures.emplace_back(); } |