Commit fe52d9b
authored
Only run --no-exit-runtime when optimizing (emscripten-core#11998)
That pass is a pure optimization: it removes calls to atexit when they
would be ignored anyhow (EXIT_RUNTIME == 0).
This removes a warning in atexit's implementation that was never
actually called before: we used to always run that pass, so if
EXIT_RUNTIME == 0 then we never had any calls to atexit
anyhow. Now that we only run the pass when optimizing, leaving
that warning would be a noticeable change (and it broke some
tests actually!) so just remove it. With that, this is essentially
NFC except that non-optimized builds may be a little larger
(containing calls to atexit that end up doing nothing).
Helps WebAssembly/binaryen#30431 parent 2461a6e commit fe52d9b
2 files changed
Lines changed: 1 addition & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
589 | 589 | | |
590 | 590 | | |
591 | 591 | | |
592 | | - | |
| 592 | + | |
593 | 593 | | |
594 | 594 | | |
595 | 595 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
709 | 709 | | |
710 | 710 | | |
711 | 711 | | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | 712 | | |
719 | 713 | | |
720 | 714 | | |
| |||
0 commit comments