Repository navigation
Conversation
Linking with --emrun has been an error together with an explicit -sEXIT_RUNTIME=0 since emscripten-core#23096. Before that, --emrun silently enabled EXIT_RUNTIME even when it was explicitly disabled. Make EXIT_RUNTIME=1 only the default of --emrun, and honor an explicit -sEXIT_RUNTIME=0. emrun_postjs.js needs the runtime to exit only for reporting the exit code of the program to emrun. The capture of stdout and stderr does not depend on it, and emrun also quits when the browser is closed. So a page that keeps running after main() has returned, e.g. a test that finishes in an asynchronous callback, can be run under emrun and end the run by closing its window. With -sEXIT_RUNTIME=0 the callback that emrun_postjs.js registers with addOnExit() is never called. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linking with
--emrunhas been an error together with an explicit-sEXIT_RUNTIME=0since #23096.Make
EXIT_RUNTIME=1only the default of--emrun, and honor an explicit-sEXIT_RUNTIME=0.My wasm_webgpu test harness uses this combo.