From a917909969156e0033286b2788f8415a0bb7f5a1 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 29 Nov 2012 10:02:07 -0800 Subject: disable closure when ASM_JS --- emcc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'emcc') diff --git a/emcc b/emcc index 48631d64..4102ebf0 100755 --- a/emcc +++ b/emcc @@ -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' -- cgit v1.2.3-18-g5258