aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-20 16:38:14 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-20 16:38:14 -0800
commit99cac67ecd359dea1e0ec2d478e5d23058c34669 (patch)
tree6ee10ea1d80c3ca3dac982050ef30b8322650a3f /emcc
parent7aee177b50949d4c7613f14b4537773dff5bcdfb (diff)
refactor test system, replace ta2 runs with o1 (-O1 with SAFE_HEAP) and o2 (-O2 without closure)
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc13
1 files changed, 1 insertions, 12 deletions
diff --git a/emcc b/emcc
index 8d9a6ae3..2d21ce87 100755
--- a/emcc
+++ b/emcc
@@ -338,18 +338,7 @@ try:
final_suffix = target.split('.')[-1]
# Apply optimization level settings
- if opt_level >= 1:
- shared.Settings.ASSERTIONS = 0
- shared.Settings.DISABLE_EXCEPTION_CATCHING = 1
- if opt_level >= 2:
- shared.Settings.RELOOP = 1
- if opt_level >= 3:
- shared.Settings.CORRECT_SIGNS = 0
- shared.Settings.CORRECT_OVERFLOWS = 0
- shared.Settings.CORRECT_ROUNDINGS = 0
- shared.Settings.I64_MODE = 0
- shared.Settings.DOUBLE_MODE = 0
- print >> sys.stderr, 'Warning: Applying some potentially unsafe optimizations! (Use -O2 if this fails.)'
+ shared.Settings.apply_opt_level(opt_level, noisy=True)
# Apply -s settings in newargs here (after optimization levels, so they can override them)
for change in settings_changes: