diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-15 22:13:40 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-15 22:13:40 -0800 |
commit | 426ae60955f6e0c737a0a8898293e764c59b3f4c (patch) | |
tree | 11117e07d9d83f3dc31d5ddaab311c984f3534e0 /emcc | |
parent | cad9b242be49d551f07e1df803594164eb4a7e57 (diff) |
disable C++ exception catching in emcc -O1 and -O2
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |