aboutsummaryrefslogtreecommitdiff
path: root/tools/shared.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-02-21 14:21:12 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-02-21 14:21:12 -0800
commit989d49f884cf7b72a14881e6040e43185cbfbd5b (patch)
treea53712c049d82e45a17b6662d50a035f152997cb /tools/shared.py
parentd2ae502d4cb827d81f1257f088ab7dbf43cb8d1d (diff)
reflect that asm is on by default in fastcomp, even in -O0, in the settings
Diffstat (limited to 'tools/shared.py')
-rw-r--r--tools/shared.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/shared.py b/tools/shared.py
index 31dc64b1..6d4636cf 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -804,6 +804,8 @@ class Settings2(type):
@classmethod
def apply_opt_level(self, opt_level, noisy=False):
+ if opt_level == 0 and os.environ.get('EMCC_FAST_COMPILER') == '0':
+ self.attrs['ASM_JS'] = 0 # non-fastcomp has asm off in -O1
if opt_level >= 1:
self.attrs['ASM_JS'] = 1
self.attrs['ASSERTIONS'] = 0