You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Question: -sMAIN_MODULE=1 and -sEXPORTED_FUNCTIONS warning no longer valid? #21838
After #21785 was merged, only things with EMSCRIPTEN_KEEPALIVE are exported. This is problematic if we want to export symbols from libraries. It seems to work to put the library symbols that we wish to export into -sEXPORTED_FUNCTIONS= but we get a warning:
em++: warning: EXPORTED_FUNCTIONS is not valid with LINKABLE set (normally due
to SIDE_MODULE=1/MAIN_MODULE=1) since all functions are exported this mode.
To export only a subset use SIDE_MODULE=2/MAIN_MODULE=2 [-Wunused-command-line-argument]
Activity
sbc100 commentedon Apr 26, 2024
Sorry yes, I believe that warning is no longer valid and we should allow
-sEXPORTED_FUNCTIONSin this case.sbc100 commentedon Apr 26, 2024
BTW are you referring to symbols in the main module or symbols in the side module?
hoodmane commentedon Apr 27, 2024
Symbols in the main module.
Remove "EXPORTED_FUNCTIONS used when linkable set" warning (#27514)