wasm32-unknown-emscripten expects the rust_eh_personality symbol

The `wasm32-unknown-emscripten` expects the `rust_eh_personality` symbol to be there, but a cfg checking for `target_arch = "wasm32"` which was meant to remove the symbol from the `wasm32-unknown-unknown` target, didn't check for whether `emscripten` is targeted or not, so the symbol accidentally got filtered out there as well.

Fixes #55276
This commit is contained in:
Christopher Serr 2018-11-08 02:56:25 +01:00
parent 25a42b2ceb
commit a9b5988847
1 changed files with 4 additions and 1 deletions

View File

@ -97,7 +97,10 @@ pub unsafe extern fn __rust_start_panic(_payload: usize) -> u32 {
pub mod personalities { pub mod personalities {
#[no_mangle] #[no_mangle]
#[cfg(not(any( #[cfg(not(any(
target_arch = "wasm32", all(
target_arch = "wasm32",
not(target_os = "emscripten"),
),
all( all(
target_os = "windows", target_os = "windows",
target_env = "gnu", target_env = "gnu",