diff --git a/src/lib.rs b/src/lib.rs index f2c419477..f122d3f3c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2161,15 +2161,6 @@ impl Build { cmd.push_cc_arg("-fno-plt".into()); } } - if target.arch == "wasm32" || target.arch == "wasm64" { - // WASI does not support exceptions yet. - // https://github.com/WebAssembly/exception-handling - // - // `rustc` also defaults to (currently) disable exceptions - // on all WASM targets: - // - cmd.push_cc_arg("-fno-exceptions".into()); - } if target.os == "wasi" { // Link clang sysroot