mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 14:33:25 +03:00
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:
@@ -97,7 +97,10 @@ unsafe fn abort() -> ! {
|
||||
pub mod personalities {
|
||||
#[no_mangle]
|
||||
#[cfg(not(any(
|
||||
target_arch = "wasm32",
|
||||
all(
|
||||
target_arch = "wasm32",
|
||||
not(target_os = "emscripten"),
|
||||
),
|
||||
all(
|
||||
target_os = "windows",
|
||||
target_env = "gnu",
|
||||
|
||||
Reference in New Issue
Block a user