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.

This commit is contained in:
Jukka Jylänki 2012-11-14 18:44:23 +02:00
Родитель f5dd729eb2
Коммит 4ab1c8acec
1 изменённых файлов: 1 добавлений и 0 удалений

1
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':