Kaydet (Commit) c4a26721 authored tarafından Michael Stahl's avatar Michael Stahl

tdf#82430: gcc-wrappers: command line *must* start with a space

Yes, you read that right, if there's no space in front of the first
argument, cl.exe will *ignore* it.

Change-Id: I73d9bf026705538e53b5d91091a4c96eb15739b2
üst 41392516
......@@ -186,6 +186,11 @@ int startprocess(string command, string args) {
command=command.substr(0,pos+strlen("ccache"))+".exe";
}
if (args[0] != ' ')
{
args.insert(0, " "); // lpCommandLine *must* start with space!
}
//cerr << "CMD= " << command << " " << args << endl;
// Commandline may be modified by CreateProcess
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment