-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Don't export main
on WebAssembly.
#102480
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
Don't export main
on WebAssembly.
#102480
Conversation
On `default_hidden_visibility = true` platforms, which is currently just WebAssembly, don't automatically export `main`. On such platforms, `main` in C defaults to being hidden, and therefore not automatically exported.
(rust-highfive has picked a reviewer for you, use r? to override) |
@bors r+ |
…port-main, r=petrochenkov Don't export `main` on WebAssembly. On `default_hidden_visibility = true` platforms, which is currently just WebAssembly, don't automatically export `main`. On such platforms, `main` in C defaults to being hidden, and therefore not automatically exported.
@bors r- failed in a rollup |
☔ The latest upstream changes (presumably #104600) made this pull request unmergeable. Please resolve the merge conflicts. |
@sunfishcode any updates on this? |
src/etc/wasm32-shim.js depends on |
@sunfishcode Can you please post your status on this PR? It has sat idle for months. |
In theory we should do something here, but in practice it'll require navigating some complex backwards compatibility constraints. |
@sunfishcode @rustbot label: +S-inactive |
On
default_hidden_visibility = true
platforms, which is currently just WebAssembly, don't automatically exportmain
. On such platforms,main
in C defaults to being hidden, and therefore not automatically exported.