-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Add embind code size test. NFC #22418
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
Conversation
tools/emscripten.py
Outdated
|
||
# Decide whether we should generate the global dynCalls dictionary for the dynCall() function? | ||
if settings.DYNCALLS and '$dynCall' in settings.DEFAULT_LIBRARY_FUNCS_TO_INCLUDE and len([x for x in exports if x.startswith('dynCall_')]) > 0: | ||
if settings.DYNCALLS or not settings.WASM_BIGINT or '$dynCall' in settings.DEFAULT_LIBRARY_FUNCS_TO_INCLUDE: |
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.
Is this change suppose to be in here?
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.
Yeah, without this the simple test doesn't compile due to closure warning about dynCalls
symbol being missing.
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.
Actually I found a better way to express this dependency precisely in library.js where it belongs.
40a2464
to
e377bf1
Compare
e377bf1
to
0686d07
Compare
|
||
#if DYNCALLS || !WASM_BIGINT | ||
#if MINIMAL_RUNTIME | ||
$dynCalls: '[]', |
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.
This was {}
before, and it does seem to be used more like a map than an array - why was this changed?
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.
Oops you are right... it should be {}
This was a mistake from emscripten-core#22418. See emscripten-core#22418 (comment)
This was a mistake from emscripten-core#22418. See emscripten-core#22418 (comment)
This was a mistake from emscripten-core#22418. See emscripten-core#22418 (comment)
This was a mistake from #22418. See #22418 (comment)
In order to make this new test even compile I moved the declaration of
dynCalls
from being hand coded in python to being decoratively included in library.js, which makes more sense anyway.See #22416