diff options
author | Bobby D Reynolds <boreynol@microsoft.com> | 2021-05-18 15:57:02 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-05-28 16:28:43 (GMT) |
commit | ae108418ae45aff7740605bb7add3843b050d226 (patch) | |
tree | 1b46b02e2c567538b0437fed2aef91564cd8f577 /Source/cmNinjaNormalTargetGenerator.cxx | |
parent | 92c8b83641eae61700d16602e0b60d9c9c6f3b15 (diff) | |
download | CMake-ae108418ae45aff7740605bb7add3843b050d226.zip CMake-ae108418ae45aff7740605bb7add3843b050d226.tar.gz CMake-ae108418ae45aff7740605bb7add3843b050d226.tar.bz2 |
Launchers: Support setting linker launchers
Fixes: #18316
Diffstat (limited to 'Source/cmNinjaNormalTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaNormalTargetGenerator.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx index 03fc0b4..9a48047 100644 --- a/Source/cmNinjaNormalTargetGenerator.cxx +++ b/Source/cmNinjaNormalTargetGenerator.cxx @@ -456,6 +456,11 @@ void cmNinjaNormalTargetGenerator::WriteLinkRule(bool useResponseFile, vars.LanguageCompileFlags = langFlags.c_str(); } + std::string linkerLauncher = this->GetLinkerLauncher(config); + if (cmNonempty(linkerLauncher)) { + vars.Launcher = linkerLauncher.c_str(); + } + std::string launcher; cmProp val = this->GetLocalGenerator()->GetRuleLauncher( this->GetGeneratorTarget(), "RULE_LAUNCH_LINK"); |