diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-12-16 21:06:54 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-12-16 21:06:54 -0800 |
commit | 611d08896c7e5a52c359ba30055a1f804d1effaa (patch) | |
tree | 7f60425d3d77c4dfcfa8ffe15b1a150f28b615fd /emcc | |
parent | 2dc6164ecdfce073b96e0cf98039bae509543d94 (diff) |
allow -O0 in fastcomp, still in asm mode
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) |