This PR is for removing linker warning messages. When a project (e.g., mine haha) imports datachannel-wasm through multiple layers, for example:
datachannel-wasm -> library A -> library B -> app
adding "SHELL:-s EXPORTED_RUNTIME_METHODS=[\"dynCall\"]" to datachannel-wasm causes emscripten to print the following message for every cpp file of library A and B:
em++: warning: linker setting ignored during compilation: 'EXPORTED_RUNTIME_METHODS' [-Wunused-command-line-argument]
This can be avoided by adding "SHELL:-s EXPORTED_RUNTIME_METHODS=[\"dynCall\"]" directly to app, instead of datachannel-wasm. This EXPORT_DYNCALL option allows such an approach.
Hi Paul-Louis,
This PR is for removing linker warning messages. When a project (e.g., mine haha) imports datachannel-wasm through multiple layers, for example: datachannel-wasm -> library A -> library B -> app
adding "SHELL:-s EXPORTED_RUNTIME_METHODS=[\"dynCall\"]" to datachannel-wasm causes emscripten to print the following message for every cpp file of library A and B:
em++: warning: linker setting ignored during compilation: 'EXPORTED_RUNTIME_METHODS' [-Wunused-command-line-argument]
This can be avoided by adding "SHELL:-s EXPORTED_RUNTIME_METHODS=[\"dynCall\"]" directly to app, instead of datachannel-wasm. This EXPORT_DYNCALL option allows such an approach.
Thanks for keep pushing this project forward!!