gollvm: wrapper: quote args
So it works when args contain special characters like space.
Change-Id: Ia4eaeb039964a82ad024b6d555976c1846c912a4
Reviewed-on: https://go-review.googlesource.com/66632
Reviewed-by: Than McIntosh <thanm@google.com>
diff --git a/tools/gollvm-wrap.py b/tools/gollvm-wrap.py
index 341a4b0..416bf78 100755
--- a/tools/gollvm-wrap.py
+++ b/tools/gollvm-wrap.py
@@ -320,7 +320,7 @@
here = os.getcwd()
wf.write("#!/bin/sh\n")
wf.write("P=%s/bin/gollvm-wrap.py\n" % here)
- wf.write("exec python ${P} $*\n")
+ wf.write("exec python ${P} \"$@\"\n")
except IOError:
u.error("open/write failed for bin/gccgo wrapper")
docmd("chmod 0755 bin/gccgo")