diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-06-22 15:32:03 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-06-22 15:32:03 -0700 |
commit | 61b60b7f130858d352e1cfc6bc76c55dc11789b8 (patch) | |
tree | e5d2ac19a3618c1d2b01152eeccb71d30d0d167d /tools/js_optimizer.py | |
parent | 202461abe30f260cf403d430e51d80f225950605 (diff) |
only minify globals when relooping
Diffstat (limited to 'tools/js_optimizer.py')
-rw-r--r-- | tools/js_optimizer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/js_optimizer.py b/tools/js_optimizer.py index f014c7d4..6788f196 100644 --- a/tools/js_optimizer.py +++ b/tools/js_optimizer.py @@ -131,7 +131,7 @@ def run_on_js(filename, passes, js_engine, jcache): end_funcs = js.rfind(end_funcs_marker) #assert (start_funcs >= 0) == (end_funcs >= 0) == (not not suffix) - minify_globals = 'minifyGlobals' in passes + minify_globals = 'minifyGlobals' in passes and 'registerize' in passes and 'asm' in passes if minify_globals: passes = filter(lambda p: p != 'minifyGlobals', passes) # we will run it manually start_asm_marker = '// EMSCRIPTEN_START_ASM\n' |