Explorar o código

Ninja: Shell encode the command used in custom commands

Peter Collingbourne %!s(int64=13) %!d(string=hai) anos
pai
achega
70c39c845f
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      Source/cmLocalNinjaGenerator.cxx

+ 2 - 1
Source/cmLocalNinjaGenerator.cxx

@@ -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);
   }