Skip to content

Commit 4ab1c8a

Browse files
committed
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.
1 parent f5dd729 commit 4ab1c8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

emcc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,7 @@ try:
578578
absolute_warning_shown = False
579579

580580
for i in range(len(newargs)):
581+
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'
581582
if newargs[i].startswith('-O'):
582583
requested_level = newargs[i][2]
583584
if requested_level == 's':

0 commit comments

Comments
 (0)