Ninja: Shell encode the command used in custom commands

This commit is contained in:
Peter Collingbourne 2012-02-19 03:07:21 +00:00
parent 0643fee2fe
commit 70c39c845f
1 changed files with 2 additions and 1 deletions

View File

@ -334,7 +334,8 @@ void cmLocalNinjaGenerator::AppendCustomCommandLines(const cmCustomCommand *cc,
cmdLines.push_back(cdCmd.str());
}
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();
ccg.AppendArguments(i, cmd);
}