aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-02-25 18:31:05 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-02-26 09:48:27 -0800
commit01efb0bfc550ed1e4ebd4cfc2c617dea83026029 (patch)
treef301558f011101e8a891c1fec20ca7fa92508b45 /emcc
parente2d05d569d7848d15ddd956e5c456d81f7bf9292 (diff)
pass NO_EXIT_RUNTIME flag to fastcomp and add test
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc5
1 files changed, 4 insertions, 1 deletions
diff --git a/emcc b/emcc
index 8d840074..71e55f44 100755
--- a/emcc
+++ b/emcc
@@ -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: