Skip to content
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

[Web] Fix dlink_enabled build #82633

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

Faless
Copy link
Collaborator

@Faless Faless commented Oct 1, 2023

After changing the default visibility to hidden to avoid generating thousands of import/export symbols (browsers have a hard limit of 10k), explicitly setting visibility for "boundary functions" (i.e. wasm callbacks called by JS via pointer) is required to ensure the function can be retrieved via pointer from the function table.

Fixup after #79578 , which mischaracterized the resulting error as emscripten-core/emscripten#19425 (we do start threads from the fat side module, but apparently that does work for us 👀 ).

After changing the default visibility to hidden to avoid generating
thousands of import/export symbols (browsers have a hard limit of 10k),
explicitly setting visibility for "boundary functions" (i.e. wasm
callbacks called by JS via pointer) is required to ensure the function
can be retrieved via pointer from the function table.
@akien-mga akien-mga changed the title [Web] Fix dlink_enabled build [Web] Fix dlink_enabled build Oct 1, 2023
@akien-mga akien-mga merged commit 9b29efd into godotengine:master Oct 2, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants