We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e79023 commit 8b3616eCopy full SHA for 8b3616e
emcc.py
@@ -595,7 +595,7 @@ def backend_binaryen_passes():
595
# fully handled in DWARF updating yet
596
if shared.Settings.DEBUG_LEVEL < 3:
597
passes += ['--inline-main']
598
- if not shared.Settings.EXIT_RUNTIME:
+ if shared.Settings.OPT_LEVEL > 0 and not shared.Settings.EXIT_RUNTIME:
599
passes += ['--no-exit-runtime']
600
if shared.Settings.OPT_LEVEL > 0 or shared.Settings.SHRINK_LEVEL > 0:
601
passes += [building.opt_level_to_str(shared.Settings.OPT_LEVEL, shared.Settings.SHRINK_LEVEL)]
0 commit comments