diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-02-02 17:07:37 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-02-02 17:07:37 -0800 |
commit | a3632a129dad24511ecbd5694637d592c301a142 (patch) | |
tree | a06b23ce45178d3b893b7013b294279cb7b67159 /emcc | |
parent | 23892d22563257494710bb81179d306db4b9fe10 (diff) |
support EXCEPTION_CATCHING_WHITELIST in fastcomp
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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' |