diff options
author | Brad King <brad.king@kitware.com> | 2017-04-27 20:15:07 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-04-27 20:15:07 (GMT) |
commit | a8667467ea6337faddb0eeb7a8d0b08154338ac0 (patch) | |
tree | 85b8b490943289ed6b55fd835c6ec0565156e9c8 /Source/cmGhsMultiTargetGenerator.cxx | |
parent | f0ae821681a0a0b4f411a0feb4a6f6e458475999 (diff) | |
download | CMake-a8667467ea6337faddb0eeb7a8d0b08154338ac0.zip CMake-a8667467ea6337faddb0eeb7a8d0b08154338ac0.tar.gz CMake-a8667467ea6337faddb0eeb7a8d0b08154338ac0.tar.bz2 |
Add IPO compiler flags more consistently in generators
Move addition of IPO flags into `cmLocalGenerator::AddLanguageFlags`
because all call sites of that need the IPO flags, but not all were
following the call with `AppendFeatureOptions`.
Diffstat (limited to 'Source/cmGhsMultiTargetGenerator.cxx')
-rw-r--r-- | Source/cmGhsMultiTargetGenerator.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmGhsMultiTargetGenerator.cxx b/Source/cmGhsMultiTargetGenerator.cxx index ba623d5..7032cd5 100644 --- a/Source/cmGhsMultiTargetGenerator.cxx +++ b/Source/cmGhsMultiTargetGenerator.cxx @@ -232,10 +232,12 @@ void cmGhsMultiTargetGenerator::SetCompilerFlags(std::string const& config, const char* lang = language.c_str(); if (notKernel) { - this->LocalGenerator->AddLanguageFlags(flags, lang, config); + this->LocalGenerator->AddLanguageFlags(flags, this->GeneratorTarget, + lang, config); } else { - this->LocalGenerator->AddLanguageFlags( - flags, lang + std::string("_GHS_KERNEL"), config); + this->LocalGenerator->AddLanguageFlags(flags, this->GeneratorTarget, + lang + std::string("_GHS_KERNEL"), + config); } this->LocalGenerator->AddCMP0018Flags(flags, this->GeneratorTarget, lang, config); |