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:
Родитель
f5dd729eb2
Коммит
4ab1c8acec
1
emcc
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':
|
||||
|
|
Загрузка…
Ссылка в новой задаче