mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 12:09:48 +00:00
Merge topic 'fix-ctest-launchers'
db61cd5d
cmRulePlaceholderExpander: Remove unused member RuleLauncherb7771078
Comment ExpandRuleVariables calls not preceded by launcher insertionc58a5198
Makefile: Restore RULE_LAUNCH_COMPILE generation on compilation rules
This commit is contained in:
commit
ce71bd9505
@ -553,7 +553,6 @@ void cmMakefileTargetGenerator::WriteObjectBuildFile(
|
||||
}
|
||||
}
|
||||
cmRulePlaceholderExpander::RuleVariables vars;
|
||||
vars.RuleLauncher = "RULE_LAUNCH_COMPILE";
|
||||
vars.CMTargetName = this->GeneratorTarget->GetName().c_str();
|
||||
vars.CMTargetType =
|
||||
cmState::GetTargetTypeName(this->GeneratorTarget->GetType());
|
||||
@ -624,6 +623,7 @@ void cmMakefileTargetGenerator::WriteObjectBuildFile(
|
||||
lang_can_export_cmds && compileCommands.size() == 1) {
|
||||
std::string compileCommand = compileCommands[0];
|
||||
|
||||
// no launcher for CMAKE_EXPORT_COMPILE_COMMANDS
|
||||
rulePlaceholderExpander->ExpandRuleVariables(this->LocalGenerator,
|
||||
compileCommand, vars);
|
||||
std::string workingDirectory = cmSystemTools::CollapseFullPath(
|
||||
@ -681,9 +681,20 @@ void cmMakefileTargetGenerator::WriteObjectBuildFile(
|
||||
}
|
||||
}
|
||||
|
||||
std::string launcher;
|
||||
{
|
||||
const char* val = this->LocalGenerator->GetRuleLauncher(
|
||||
this->GeneratorTarget, "RULE_LAUNCH_COMPILE");
|
||||
if (val && *val) {
|
||||
launcher = val;
|
||||
launcher += " ";
|
||||
}
|
||||
}
|
||||
|
||||
// Expand placeholders in the commands.
|
||||
for (std::vector<std::string>::iterator i = compileCommands.begin();
|
||||
i != compileCommands.end(); ++i) {
|
||||
*i = launcher + *i;
|
||||
rulePlaceholderExpander->ExpandRuleVariables(this->LocalGenerator, *i,
|
||||
vars);
|
||||
}
|
||||
@ -748,6 +759,7 @@ void cmMakefileTargetGenerator::WriteObjectBuildFile(
|
||||
// Expand placeholders in the commands.
|
||||
for (std::vector<std::string>::iterator i = preprocessCommands.begin();
|
||||
i != preprocessCommands.end(); ++i) {
|
||||
// no launcher for preprocessor commands
|
||||
rulePlaceholderExpander->ExpandRuleVariables(this->LocalGenerator,
|
||||
*i, vars);
|
||||
}
|
||||
@ -796,6 +808,7 @@ void cmMakefileTargetGenerator::WriteObjectBuildFile(
|
||||
// Expand placeholders in the commands.
|
||||
for (std::vector<std::string>::iterator i = assemblyCommands.begin();
|
||||
i != assemblyCommands.end(); ++i) {
|
||||
// no launcher for assembly commands
|
||||
rulePlaceholderExpander->ExpandRuleVariables(this->LocalGenerator,
|
||||
*i, vars);
|
||||
}
|
||||
|
@ -1046,6 +1046,7 @@ void cmNinjaTargetGenerator::ExportObjectCompileCommand(
|
||||
|
||||
for (std::vector<std::string>::iterator i = compileCmds.begin();
|
||||
i != compileCmds.end(); ++i) {
|
||||
// no launcher for CMAKE_EXPORT_COMPILE_COMMANDS
|
||||
rulePlaceholderExpander->ExpandRuleVariables(this->GetLocalGenerator(), *i,
|
||||
compileObjectVars);
|
||||
}
|
||||
|
@ -56,7 +56,6 @@ public:
|
||||
const char* LanguageCompileFlags;
|
||||
const char* Defines;
|
||||
const char* Includes;
|
||||
const char* RuleLauncher;
|
||||
const char* DependencyFile;
|
||||
const char* FilterPrefix;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user