diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-02-25 18:31:05 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-02-26 09:48:27 -0800 |
commit | 01efb0bfc550ed1e4ebd4cfc2c617dea83026029 (patch) | |
tree | f301558f011101e8a891c1fec20ca7fa92508b45 /emcc | |
parent | e2d05d569d7848d15ddd956e5c456d81f7bf9292 (diff) |
pass NO_EXIT_RUNTIME flag to fastcomp and add test
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1180,7 +1180,10 @@ try: logging.warning('jcache is deprecated and not supported in fastcomp (you should not need it anyhow), disabling') jcache = False - fastcomp_opts = ['-pnacl-abi-simplify-preopt', '-pnacl-abi-simplify-postopt'] + fastcomp_opts = [] + if shared.Settings.NO_EXIT_RUNTIME: + fastcomp_opts += ['-emscripten-no-exit-runtime', '-globaldce'] + fastcomp_opts += ['-pnacl-abi-simplify-preopt', '-pnacl-abi-simplify-postopt'] if shared.Settings.DISABLE_EXCEPTION_CATCHING != 1: fastcomp_opts += ['-enable-emscripten-cxx-exceptions'] if len(shared.Settings.EXCEPTION_CATCHING_WHITELIST) > 0: |