Skip to content

Replace dynamic dynCall by makeDynCall macro #39

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

Merged
merged 1 commit into from
Jun 24, 2022

Conversation

paullouisageneau
Copy link
Owner

It appears dynCall has been converted into a library function in emscripten-core/emscripten#12002 therefore datachannel-wasm should add an explicit dependency on '$dynCall' to ensure it is present at runtime.

However, it seems better to remove the reliance on the dynCall API entirely. This PR replaces dynamic dynCall usage by the makeDynCall macro, as the macro looks widely used in emscripten JS libraries and is de-facto public as explained in emscripten-core/emscripten#12732. It removes the dependency on the runtime method and should perform better.

Fixes the possible need for -sDYNCALLS=1 described in #38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant