Fixed shlex.split() problem for Windows.

This commit is contained in:
Sigmund Vik 2012-04-04 18:25:09 +02:00
Родитель d8d7cc8e8a
Коммит 5600f6c264
1 изменённых файлов: 2 добавлений и 1 удалений

3
emcc
Просмотреть файл

@ -1044,8 +1044,9 @@ try:
if js_transform:
shutil.copyfile(final, final + '.tr.js')
final += '.tr.js'
posix = True if not shared.WINDOWS else False
if DEBUG: print >> sys.stderr, 'emcc: applying transform: %s' % js_transform
execute(shlex.split(js_transform) + [os.path.abspath(final)])
execute(shlex.split(js_transform, posix=posix) + [os.path.abspath(final)])
if DEBUG: save_intermediate('transformed')
# It is useful to run several js optimizer passes together, to save on unneeded unparsing/reparsing