Don't export main on WebAssembly.#102480
Don't export main on WebAssembly.#102480sunfishcode wants to merge 1 commit intorust-lang:masterfrom
main on WebAssembly.#102480Conversation
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 = trueplatforms, which is currently just WebAssembly, don't automatically exportmain. On such platforms,mainin C defaults to being hidden, and therefore not automatically exported.