-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Add missing dependency to emscripten_runtime_keepalive_clear. NFC #22784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add missing dependency to emscripten_runtime_keepalive_clear. NFC #22784
Conversation
e3107ba to
9b37362
Compare
test/test_other.py
Outdated
| self.do_other_test('test_embool.c') | ||
|
|
||
| def test_strict_closure(self): | ||
| self.emcc(test_file('hello_world.c'), ['-sSTRICT', '--closure=1']) |
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.
Maybe put it alongside this similar test?
Lines 14906 to 14907 in 9e618aa
| def test_arguments_global(self): | |
| self.emcc(test_file('hello_world_argv.c'), ['-sENVIRONMENT=web', '-sSTRICT', '--closure=1', '-O2']) |
eyebrowsoffire
left a comment
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.
LGTM. Just some small suggestions, but they probably don't really matter either way.
| }, | ||
|
|
||
| #if !MINIMAL_RUNTIME | ||
| _emscripten_runtime_keepalive_clear__deps: ['$runtimeKeepaliveCounter'], |
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.
Two things:
- Perhaps
$runtimeKeepaliveCountershould be removed below from the direct deps ofemscripten_force_exit, since it will already get it implicitly from depending on this function. - I'm not 100% sure about this, but could we instead have an alternative version of
_emscripten_runtime_keepalive_clearthat just doesn't do anything and doesn't depend onruntimeKeepaliveCounterat all, since in that case the variable isn't otherwise used? It doesn't seem to be incremented/decremented or checked in the case I was building. Not a huge deal either way, but if the other code paths avoid using the variable when in this mode, perhaps this one could avoid using the variable as well?
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.
First part done, good idea.
Second part is harder. Its something I've done for noExitRuntime but this stuff is pretty tricky to get right so I'll leave that for a followup.
9b37362 to
ece2b6c
Compare
Fixes #22783