summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-04-18 22:02:23 +0200
committerDavid Tardon <dtardon@redhat.com>2015-04-19 08:22:22 +0000
commit0dac335acbcd382fff422e50058d8aa21646a364 (patch)
treef49712545ba2d17ba7d6bd4b10ea23c08a4db724 /solenv
parentc31adf195669875a778f911796acdbada428c3d2 (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/15381 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gcc-wrappers/wrapper.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/solenv/gcc-wrappers/wrapper.cxx b/solenv/gcc-wrappers/wrapper.cxx
index 918a9b59307f..704f33c66077 100644
--- a/solenv/gcc-wrappers/wrapper.cxx
+++ b/solenv/gcc-wrappers/wrapper.cxx
@@ -188,6 +188,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