Don't use whole-archive unless actaully needed - #11061
Conversation
| $pop_arg | ||
| $pop_arg_long_double | ||
| $printf_core | ||
| $pthread_cond_wait |
There was a problem hiding this comment.
This seems to be the result of no using --whole-archive around libc++abi.. I'm not sure what to make of it .. but I'm pretty sure we don't want --whole-archive
There was a problem hiding this comment.
I wonder if it happens to cause a different order of functions, and then different function sizes (LEBs of call indexes change), and it's just enough to cause an inlining difference...
Maybe just verify locally that the wasm size hasn't changed much? (the metadce test should, but would be good to know if this is just under the size of the slack we allow to change)
kripken
left a comment
There was a problem hiding this comment.
Should the behavior of EMCC_ONLY_FORCED_STDLIBS (line 1482) change with this?
| shared.Settings.MAX_WEBGL_VERSION = 2 | ||
|
|
||
| forced_stdlibs = [] | ||
| include_stdlibs = [] |
There was a problem hiding this comment.
included, with a d perhaps? at least for me, include_stdlibs sounds like a boolean, not a list of included stdlibs.
| $pop_arg | ||
| $pop_arg_long_double | ||
| $printf_core | ||
| $pthread_cond_wait |
There was a problem hiding this comment.
I wonder if it happens to cause a different order of functions, and then different function sizes (LEBs of call indexes change), and it's just enough to cause an inlining difference...
Maybe just verify locally that the wasm size hasn't changed much? (the metadce test should, but would be good to know if this is just under the size of the slack we allow to change)
|
I think EMCC_FORCED_STDLIBS and EMCC_ONLY_FORCED_STDLIBS should both remain unchanged here.. at least that is my intention. |
|
I might just land #11063 instead since libc++abi is the only lib here is many different object files in it. |
Sometime emcc wants to add extra libraries the link, but when it does do there is no need to use `--whole-archive` which is what is used for FORCE_STDLIBS This change was split out from: #10998
Sometime emcc wants to add extra libraries the link, but when it
does do there is no need to use
--whole-archivewhich is what isused for FORCE_STDLIBS
This change was split out from:
#10998