aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-12-16 21:06:54 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-12-16 21:06:54 -0800
commit611d08896c7e5a52c359ba30055a1f804d1effaa (patch)
tree7f60425d3d77c4dfcfa8ffe15b1a150f28b615fd
parent2dc6164ecdfce073b96e0cf98039bae509543d94 (diff)
allow -O0 in fastcomp, still in asm mode
-rwxr-xr-xemcc5
1 files changed, 4 insertions, 1 deletions
diff --git a/emcc b/emcc
index f0c760ab..914765d6 100755
--- a/emcc
+++ b/emcc
@@ -1151,8 +1151,11 @@ try:
logging.warning('disabling asm.js since embind is not ready for it yet')
shared.Settings.ASM_JS = 0
+ if os.environ.get('EMCC_FAST_COMPILER'):
+ shared.Settings.ASM_JS = 1
+
if shared.Settings.ASM_JS:
- assert opt_level >= 1, 'asm.js requires -O1 or above'
+ assert opt_level >= 1 or os.environ.get('EMCC_FAST_COMPILER'), 'asm.js requires -O1 or above'
if bind:
shared.Settings.RESERVED_FUNCTION_POINTERS = max(shared.Settings.RESERVED_FUNCTION_POINTERS, 10)