Ninja: Shell encode the command used in custom commands
This commit is contained in:
parent
0643fee2fe
commit
70c39c845f
@ -334,7 +334,8 @@ void cmLocalNinjaGenerator::AppendCustomCommandLines(const cmCustomCommand *cc,
|
|||||||
cmdLines.push_back(cdCmd.str());
|
cmdLines.push_back(cdCmd.str());
|
||||||
}
|
}
|
||||||
for (unsigned i = 0; i != ccg.GetNumberOfCommands(); ++i) {
|
for (unsigned i = 0; i != ccg.GetNumberOfCommands(); ++i) {
|
||||||
cmdLines.push_back(ccg.GetCommand(i));
|
cmdLines.push_back(this->ConvertToOutputFormat(ccg.GetCommand(i).c_str(),
|
||||||
|
SHELL));
|
||||||
std::string& cmd = cmdLines.back();
|
std::string& cmd = cmdLines.back();
|
||||||
ccg.AppendArguments(i, cmd);
|
ccg.AppendArguments(i, cmd);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user