-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
wasmExports not declared #20145
Comments
Where is the reference to |
It was erroring out in postamble-minimal.js. If I passed |
What is the error you are seeing? |
This simplifies the code and makes MINIMAL_RUNTIME behave more like the regular runtime. It also allows `-sEXPORTED_RUNTIME_METHODS=wasmExports`, which doesn't work without this. This also matches the way we handle other globals such as `wasmTable` and `wasmMemory`. This save a few bytes of code size in some tests and cost a few in others so on average I would say this code size neutral. Fixes: #20145
Are you using embind in the project? Can you post the line in the build that refers to |
The conditions under which wasmExports was declared global vs locally were out of sync. Also, move the declaration of the global wasmExports alongside the other wasm globals. See: #20145
The conditions under which wasmExports was declared global vs locally were out of sync. Also, move the declaration of the global wasmExports alongside the other wasm globals. See: #20145
Yes, I'm using embind. The line that fails is this: https://github.com/emscripten-core/emscripten/blob/main/src/postamble_minimal.js#L166 |
Fix is in #20159 |
I'm getting an error about
wasmExports
not being declared. I believe this is due to #19901 combined with the odd set of linker options I have:Oddly, this didn't happen before #19901 because I was running through the js compiler (I'm doing this myself manually and not via emscripten) and
asm
the compiler decided to declare and renameasm
for me, but for some reason it won't do the same forwasmExports
.The text was updated successfully, but these errors were encountered: