diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-29 10:02:07 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-12-07 14:23:19 -0800 |
commit | a917909969156e0033286b2788f8415a0bb7f5a1 (patch) | |
tree | eac2e987987464f40909d68998628bbb0cb1cd1d /emcc | |
parent | 1ed898664349480a4869195e092d5fe751ef3214 (diff) |
disable closure when ASM_JS
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -856,6 +856,10 @@ try: if shared.Settings.CORRECT_SIGNS >= 2 or shared.Settings.CORRECT_OVERFLOWS >= 2 or shared.Settings.CORRECT_ROUNDINGS >= 2: keep_debug = True # must keep debug info to do line-by-line operations + if closure and shared.Settings.ASM_JS: + print >> sys.stderr, 'emcc: warning: disabling closure because it is not compatible with asm.js code generation' + closure = False + ## Compile source code to bitcode if DEBUG: print >> sys.stderr, 'emcc: compiling to bitcode' |