diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-04-18 22:02:23 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-04-23 15:36:29 +0200 |
commit | 8c2bd75f01f5467311970f169f71f0f8e12ebb06 (patch) | |
tree | c135e7f26f51fbe4203992b1e1872bffd81eba41 | |
parent | 28377bebe4f1ed7bc1fc341331f3dadc02b1b34f (diff) |
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
(cherry picked from commit c4a267215c10647ff281e9e629faa0a8a201f4b4)
Reviewed-on: https://gerrit.libreoffice.org/15382
Tested-by: David Tardon <dtardon@redhat.com>
Reviewed-by: David Tardon <dtardon@redhat.com>
-rw-r--r-- | solenv/gcc-wrappers/wrapper.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/solenv/gcc-wrappers/wrapper.cxx b/solenv/gcc-wrappers/wrapper.cxx index 585a7df4c95c..5fc7c40c68c1 100644 --- a/solenv/gcc-wrappers/wrapper.cxx +++ b/solenv/gcc-wrappers/wrapper.cxx @@ -184,6 +184,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 |