aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
Diffstat (limited to 'emcc')
-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':