aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-15 22:13:40 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-15 22:13:40 -0800
commit426ae60955f6e0c737a0a8898293e764c59b3f4c (patch)
tree11117e07d9d83f3dc31d5ddaab311c984f3534e0 /emcc
parentcad9b242be49d551f07e1df803594164eb4a7e57 (diff)
disable C++ exception catching in emcc -O1 and -O2
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc5
1 files changed, 4 insertions, 1 deletions
diff --git a/emcc b/emcc
index d059a4b0..e4def1cc 100755
--- a/emcc
+++ b/emcc
@@ -112,6 +112,9 @@ Options that are modified or new in %s include:
-O0 No optimizations (default)
-O1 Simple optimizations, including safe LLVM
optimizations, and no runtime assertions
+ or C++ exception catching (to re-enable
+ C++ exception catching, use
+ -s DISABLE_EXCEPTION_CATCHING=0 )
-O2 As -O1, plus the relooper (loop recreation),
plus closure compiler
Warning: Compiling with this takes a long time!
@@ -310,6 +313,7 @@ try:
# 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:
@@ -318,7 +322,6 @@ try:
shared.Settings.CORRECT_ROUNDINGS = 0
shared.Settings.I64_MODE = 0
shared.Settings.DOUBLE_MODE = 0
- shared.Settings.DISABLE_EXCEPTION_CATCHING = 1
print >> sys.stderr, 'Warning: Applying some potentially unsafe optimizations! (Use -O2 if this fails.)'
## Compile source code to bitcode