Skip to content

Commit 8b3616e

Browse files
committed
Run --no-exit-runtime only when optimizing. See WebAssembly/binaryen#3043
1 parent 1e79023 commit 8b3616e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

emcc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ def backend_binaryen_passes():
595595
# fully handled in DWARF updating yet
596596
if shared.Settings.DEBUG_LEVEL < 3:
597597
passes += ['--inline-main']
598-
if not shared.Settings.EXIT_RUNTIME:
598+
if shared.Settings.OPT_LEVEL > 0 and not shared.Settings.EXIT_RUNTIME:
599599
passes += ['--no-exit-runtime']
600600
if shared.Settings.OPT_LEVEL > 0 or shared.Settings.SHRINK_LEVEL > 0:
601601
passes += [building.opt_level_to_str(shared.Settings.OPT_LEVEL, shared.Settings.SHRINK_LEVEL)]

0 commit comments

Comments
 (0)