aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-02-27 12:47:26 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-02-27 12:47:33 -0800
commitb4605f200c14fefe6126d8e408edd00c15ac3280 (patch)
treeceda2fa7d2a8b26f28eda80a199883b0d97232cc /emcc
parent0a42984265e281db88521c8f5adce1558ededa66 (diff)
run -globalopt when NO_EXIT_RUNTIME, to get rid of global initializers entirely in some cases
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/emcc b/emcc
index 942ea1b3..2d45bd37 100755
--- a/emcc
+++ b/emcc
@@ -1206,7 +1206,7 @@ try:
fastcomp_opts = []
if shared.Settings.NO_EXIT_RUNTIME:
- fastcomp_opts += ['-emscripten-no-exit-runtime', '-globaldce']
+ fastcomp_opts += ['-emscripten-no-exit-runtime', '-globalopt']
fastcomp_opts += ['-pnacl-abi-simplify-preopt', '-pnacl-abi-simplify-postopt']
if shared.Settings.DISABLE_EXCEPTION_CATCHING != 1:
fastcomp_opts += ['-enable-emscripten-cxx-exceptions']