about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-05-06 20:54:30 +0000
committerbors <bors@rust-lang.org>2019-05-06 20:54:30 +0000
commitf64ed091570f222d9a8eeb210dd6d1676ff38ceb (patch)
treee00a2d4ed4cc2a0bea564ce5cdc4cc491c285f2b /src/libstd
parenta19cf18c7dbbcc46dddea81df3a4cee1735c2349 (diff)
parent884632cc796816fd9d3c8de60f2245c216f9a25a (diff)
downloadrust-f64ed091570f222d9a8eeb210dd6d1676ff38ceb.tar.gz
rust-f64ed091570f222d9a8eeb210dd6d1676ff38ceb.zip
Auto merge of #60526 - alexcrichton:wasm-main-symbols, r=oli-obk
rustc: Always handle exported symbols on the wasm target

Currently when linking an artifact rustc will only conditionally call
the `Linker::export_symbols` function, but this causes issues on some
targets, like WebAssembly, where it means that executable outputs will
not have the same symbols exported that cdylib outputs have. This commit
sinks the conditional call to `export_symbols` inside the various
implementations of the function that still need it, and otherwise the
wasm linker is configured to always pass through symbol visibility
lists.
Diffstat (limited to 'src/libstd')
0 files changed, 0 insertions, 0 deletions