aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-02-10 10:15:05 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-02-10 10:15:05 -0800
commit4bdc1c2d1db587ab8ac391d7b6e2b80aeaefdad0 (patch)
tree22980d38c5663df08517a1b6a9304aefbf2a98e3 /emcc
parent9bd809a49cc4a04f6296900d9deaa1e26db586e1 (diff)
validate as asm.js in fastcomp -O1 and above, not -O0 output which is very unoptimized
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/emcc b/emcc
index 63c98a25..7686e818 100755
--- a/emcc
+++ b/emcc
@@ -1198,7 +1198,7 @@ try:
fastcomp = os.environ.get('EMCC_FAST_COMPILER') == '1'
if fastcomp:
- shared.Settings.ASM_JS = 1
+ shared.Settings.ASM_JS = 1 if opt_level > 0 else 2
assert shared.Settings.ALLOW_MEMORY_GROWTH == 0, 'memory growth not supported in fastcomp yet'
assert shared.Settings.UNALIGNED_MEMORY == 0, 'forced unaligned memory not supported in fastcomp'
assert shared.Settings.CHECK_HEAP_ALIGN == 0, 'check heap align not supported in fastcomp yet'