-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Description
I have a sample app that results in a function signature mismatch when I build the side module with -s WASM_BIGINT=1. My app runs fine if the side module is not built with -s WASM_BIGINT=1.
Unfortunately I have not done much debugging into this at the moment.
I was thinking if anyone can help to point me to where I can start looking into.
Meanwhile I'll step through the wasm code from the chrome dev console to see if I can find anything.
A reproducer can be found here:
funcSigMismatch.zip
These are the command I used to build the app:
side module: emcc side.cpp -Oz -s SIDE_MODULE=2 --profiling -flto -fPIC -s WASM_BIGINT=1 -o side.wasm
main module emcc main.cpp -Oz -s MAIN_MODULE=2 --profiling -s WASM_BIGINT=1 --pre-js preload.js -flto -fPIC --profiling -s EXPORTED_FUNCTIONS=['_main','__Znwm','__ZTI4Base','__ZTVN10__cxxabiv120__si_class_type_infoE'] -o index.js