diff options
| author | Noa <coolreader18@gmail.com> | 2024-02-21 17:32:58 -0600 |
|---|---|---|
| committer | Noa <coolreader18@gmail.com> | 2024-02-22 16:45:26 -0600 |
| commit | 3908a935ef821c2828a7d825eac859f8ff54702a (patch) | |
| tree | dd62444f5a135976635b66ee483fe4bae0a79101 /library/std/src/sys | |
| parent | f8131a48a46ac3bc8a3d0fe0477055b132cffdc3 (diff) | |
std support for wasm32 panic=unwind
Diffstat (limited to 'library/std/src/sys')
| -rw-r--r-- | library/std/src/sys/personality/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/std/src/sys/personality/mod.rs b/library/std/src/sys/personality/mod.rs index d37b8ce6346..1a6ea1dafcb 100644 --- a/library/std/src/sys/personality/mod.rs +++ b/library/std/src/sys/personality/mod.rs @@ -16,11 +16,12 @@ mod dwarf; cfg_if::cfg_if! { if #[cfg(target_os = "emscripten")] { mod emcc; - } else if #[cfg(target_env = "msvc")] { + } else if #[cfg(any(target_env = "msvc", target_family = "wasm"))] { // This is required by the compiler to exist (e.g., it's a lang item), // but it's never actually called by the compiler because - // _CxxFrameHandler3 is the personality function that is always used. - // Hence this is just an aborting stub. + // __CxxFrameHandler3 (msvc) / __gxx_wasm_personality_v0 (wasm) is the + // personality function that is always used. Hence this is just an + // aborting stub. #[lang = "eh_personality"] fn rust_eh_personality() { core::intrinsics::abort() @@ -36,7 +37,6 @@ cfg_if::cfg_if! { mod gcc; } else { // Targets that don't support unwinding. - // - family=wasm // - os=none ("bare metal" targets) // - os=uefi // - os=espidf |
