pass extra_info to all passes when splitting in EMCC_DEBUG=2 mode

This commit is contained in:
Alon Zakai 2015-05-28 16:26:04 -07:00
Родитель 6e56895459
Коммит 11fcb231d6
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -1421,9 +1421,11 @@ try:
run_passes(chunks[i], 'js_opts_' + str(i), just_split='receiveJSON' in chunks[i], just_concat='emitJSON' in chunks[i])
else:
# DEBUG 2, run each pass separately
extra_info = js_optimizer_extra_info
for p in passes:
js_optimizer_queue = [p]
flush_js_optimizer_queue(p)
js_optimizer_extra_info = extra_info # flush wipes it
js_optimizer_queue_history += js_optimizer_queue
js_optimizer_queue = []
js_optimizer_extra_info = {}