about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/query.rs
diff options
context:
space:
mode:
authorDan Gohman <dev@sunfishcode.online>2022-12-06 16:50:29 -0800
committerDan Gohman <dev@sunfishcode.online>2022-12-06 16:50:29 -0800
commit3a07aa9b5e9612a0b4fd0852763c34e1f244794b (patch)
treea77f5d811b132534dcb6149bf238ec2cd9aeb926 /compiler/rustc_mir_transform/src/coverage/query.rs
parent53728ff751df4c271d4ea565b6871057a3504fc5 (diff)
downloadrust-3a07aa9b5e9612a0b4fd0852763c34e1f244794b.tar.gz
rust-3a07aa9b5e9612a0b4fd0852763c34e1f244794b.zip
Stop passing -export-dynamic to wasm-ld.
-export-dynamic was a temporary hack added in the early days of the Rust
wasm32 target when Rust didn't have a way to specify wasm exports in the
source code. This flag causes all global symbols, and some compiler-internal
symbols, to be exported, which is often more than needed.

Rust now does have a way to specify exports in the source code:
`#[export_name = "..."]`.

So as the original comment suggests, -export-dynamic can now be removed,
allowing users to have smaller binaries and better encapsulation in
their wasm32-unknown-unknown modules.

It's possible that this change will require existing wasm32-unknown-unknown
users will to add explicit `#[export_name = "..."]` directives to
exporrt the symbols that their programs depend on having exported.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/query.rs')
0 files changed, 0 insertions, 0 deletions