aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2012-11-14 18:44:23 +0200
committerJukka Jylänki <jujjyl@gmail.com>2012-11-14 18:44:23 +0200
commit4ab1c8acec8efbdb73a4363581abf7d4f4c0aa53 (patch)
tree1bd6859d4acc0d8cb279b331580be14ff58469f8
parentf5dd729eb228001f9e1756eaa4a294bd9b2d2c95 (diff)
Python system command line may come with untrimmed items at least on Windows Vista, cmake is bad at producing these, so trim off the excessive spaces before working on the command line. Fixes other.test_cmake on Windows Vista build bot.
-rwxr-xr-xemcc1
1 files changed, 1 insertions, 0 deletions
diff --git a/emcc b/emcc
index 2a5b15de..36bd5534 100755
--- a/emcc
+++ b/emcc
@@ -578,6 +578,7 @@ try:
absolute_warning_shown = False
for i in range(len(newargs)):
+ newargs[i] = newargs[i].strip() # On Windows Vista (and possibly others), excessive spaces in the command line leak into the items in this array, so trim e.g. 'foo.cpp ' -> 'foo.cpp'
if newargs[i].startswith('-O'):
requested_level = newargs[i][2]
if requested_level == 's':