aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-04-19 10:47:36 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-04-19 11:21:51 -0700
commitf173cd3457a8ed0689662afd7008b6c906a983c2 (patch)
tree073b8af8ce67f24de42ec27b0aea58724657a80f
parent8dc4fc973b3a938dadad13273196cd857b90030e (diff)
disable asm.js when using embind
-rwxr-xr-xemcc4
1 files changed, 4 insertions, 0 deletions
diff --git a/emcc b/emcc
index 147776ae..aaaab53e 100755
--- a/emcc
+++ b/emcc
@@ -1004,6 +1004,10 @@ try:
if shared.Settings.ASM_JS:
assert opt_level >= 1, 'asm.js requires -O1 or above'
+ if bind:
+ shared.Settings.ASM_JS = 0
+ print >> sys.stderr, 'emcc: warning: disabling asm.js because it is not compatible with embind yet'
+
if closure:
print >> sys.stderr, 'emcc: warning: disabling closure because it is not compatible with asm.js code generation'
closure = False