aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-02-02 17:07:37 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-02-02 17:07:37 -0800
commita3632a129dad24511ecbd5694637d592c301a142 (patch)
treea06b23ce45178d3b893b7013b294279cb7b67159 /emcc
parent23892d22563257494710bb81179d306db4b9fe10 (diff)
support EXCEPTION_CATCHING_WHITELIST in fastcomp
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc4
1 files changed, 3 insertions, 1 deletions
diff --git a/emcc b/emcc
index d30966cd..3c427677 100755
--- a/emcc
+++ b/emcc
@@ -1206,8 +1206,10 @@ try:
jcache = False
fastcomp_opts = ['-pnacl-abi-simplify-preopt', '-pnacl-abi-simplify-postopt']
- if not shared.Settings.DISABLE_EXCEPTION_CATCHING:
+ if shared.Settings.DISABLE_EXCEPTION_CATCHING != 1:
fastcomp_opts += ['-enable-emscripten-cxx-exceptions']
+ if len(shared.Settings.EXCEPTION_CATCHING_WHITELIST) > 0:
+ fastcomp_opts += ['-emscripten-cxx-exceptions-whitelist=' + ','.join(shared.Settings.EXCEPTION_CATCHING_WHITELIST)]
if shared.Settings.ASM_JS:
assert opt_level >= 1 or fastcomp, 'asm.js requires -O1 or above'