We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16e190d commit 0fcf3ddCopy full SHA for 0fcf3dd
panic_unwind/src/lib.rs
@@ -60,12 +60,7 @@ cfg_if::cfg_if! {
60
))] {
61
#[path = "gcc.rs"]
62
mod real_imp;
63
- } else if #[cfg(all(target_family = "wasm", panic = "unwind"))] {
64
- // for now, PanicStrategy::Unwind is not the default for wasm targets,
65
- // so we need the panic = "unwind" in the cfg above. to use llvm.wasm.throw,
66
- // we need to pass -wasm-enable-eh to LLVM, but that only happens if rustc
67
- // is compiling with -C panic=unwind. So, this lets us -Zbuild-std with
68
- // panic=unwind, while keeping the default panic=abort working.
+ } else if #[cfg(target_family = "wasm")] {
69
#[path = "wasm.rs"]
70
71
} else {
0 commit comments