Skip to content

Fix wasmExports declaration under MINIMAL_RUNTIME. NFC #20159

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
Sep 6, 2023
Merged

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Aug 29, 2023

The declaration and definition of the wasmExports global were out of sync. One included EMBIND and the other didn't.

I traced the original addition of EMBIND here back to #10417. At that point embind did depend on the asm global (now wasmExports) in order to do asm['dynCall_' ... Nowadays MINIMAL_RUNTIME has a separate
dynCalls globals where these live do the dyncall mechanism no longer
depends on the asm/wasmExports global.

Fixes: #20145

@sbc100 sbc100 requested review from juj and walkingeyerobot August 29, 2023 22:18
@sbc100
Copy link
Collaborator Author

sbc100 commented Aug 29, 2023

Supersedes #20146

The declaration and definition of the wasmExports global were out
of sync.  One included EMBIND and the other didn't.

I traced the original addition of EMBIND here back to #10417.  At that
point embind did depend on the `asm` global (now `wasmExports`) in order
to do `asm['dynCall_' ..`.   Nowadays MINIMAL_RUNTIME has a separate
`dynCalls` globals where these live do the dyncall mechanism no longer
depends on the `asm`/`wasmExports` global.
@sbc100 sbc100 merged commit f68e04b into main Sep 6, 2023
@sbc100 sbc100 deleted the fix_wasmExports branch September 6, 2023 22:19
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.

wasmExports not declared
3 participants