add EMCC_JSOPT_BLACKLIST env var; fixes #2819

This commit is contained in:
Alon Zakai 2014-09-25 16:46:18 -07:00
Родитель 88d6fb2423
Коммит de774e350a
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -1346,8 +1346,12 @@ try:
js_optimizer_queue = []
js_optimizer_extra_info = {}
js_optimizer_queue_history = []
js_optimizer_blacklist = (os.environ.get('EMCC_JSOPT_BLACKLIST') or '').split(',')
def flush_js_optimizer_queue():
global final, js_optimizer_queue, js_optimizer_extra_info, js_optimizer_queue_history
js_optimizer_queue = filter(lambda p: p not in js_optimizer_blacklist, js_optimizer_queue)
if len(js_optimizer_extra_info) == 0:
js_optimizer_extra_info = None
if len(js_optimizer_queue) > 0 and not(not shared.Settings.ASM_JS and len(js_optimizer_queue) == 1 and js_optimizer_queue[0] == 'last'):