From 8b8bbf0dda53be064c3a7e595753657e02b19a37 Mon Sep 17 00:00:00 2001 From: nedv-eu <> Date: Mon, 11 Oct 2021 10:38:31 +0200 Subject: [PATCH] Change default panic strategy to abort for wasm32-unknown-emscripten target --- compiler/rustc_target/src/spec/wasm32_unknown_emscripten.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_target/src/spec/wasm32_unknown_emscripten.rs b/compiler/rustc_target/src/spec/wasm32_unknown_emscripten.rs index 86b1a75523359..4bdf31e919926 100644 --- a/compiler/rustc_target/src/spec/wasm32_unknown_emscripten.rs +++ b/compiler/rustc_target/src/spec/wasm32_unknown_emscripten.rs @@ -35,7 +35,7 @@ pub fn target() -> Target { exe_suffix: ".js".to_string(), linker: None, is_like_emscripten: true, - panic_strategy: PanicStrategy::Unwind, + panic_strategy: PanicStrategy::Abort, post_link_args, families: vec!["unix".to_string()], ..options