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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait.. shouldn't we also delete this line then?
The reason for the above error is that we are about to set
-sEXIT_RUNTIME=1
.. so if the user explicitly asks for-sEXIT_RUNTIME=0
then that is a contradiction.How about we change the above error into a warnings:
warning: ignoring -sEXIT_RUNTIME=0 because --emrun used
.What I'm trying to avoid is having emcc silently ignore the user's command line settings (or at least tell the user when two settings contradict each other, as in this case).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see, the line
settings.EXIT_RUNTIME = 1
will override user's command line if user passesemcc --emrun -sEXIT_RUNTIME=0
. Hmm that's not good.Actually I'm now confused how wasm_webgpu test suite was working with that line 740 with
settings.EXIT_RUNTIME = 1
in place. Or maybe the user command line setting is applied only afterwards, so line 740 won't override it?