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 7a202a9 commit a2f19a0Copy full SHA for a2f19a0
compiler/rustc_codegen_ssa/src/back/link.rs
@@ -2451,10 +2451,10 @@ fn add_order_independent_options(
2451
}
2452
2453
if sess.target.os == "emscripten" {
2454
- cmd.cc_arg(if sess.panic_strategy() == PanicStrategy::Abort {
2455
- "-sDISABLE_EXCEPTION_CATCHING=1"
2456
- } else if sess.opts.unstable_opts.emscripten_wasm_eh {
+ cmd.cc_arg(if sess.opts.unstable_opts.emscripten_wasm_eh {
2457
"-fwasm-exceptions"
+ } else if sess.panic_strategy() == PanicStrategy::Abort {
+ "-sDISABLE_EXCEPTION_CATCHING=1"
2458
} else {
2459
"-sDISABLE_EXCEPTION_CATCHING=0"
2460
});
0 commit comments