Unconditionally pass -wasm-enable-eh

This commit is contained in:
Noa 2024-02-22 16:52:48 -06:00
parent 861c7e74c8
commit 658a0a20ea
No known key found for this signature in database
GPG key ID: 7F9F7DB1768C59CF
2 changed files with 7 additions and 12 deletions

View file

@ -99,12 +99,12 @@ unsafe fn configure_llvm(sess: &Session) {
}
}
if sess.panic_strategy() == PanicStrategy::Unwind {
if sess.target.os == "emscripten" {
add("-enable-emscripten-cxx-exceptions", false);
} else if wants_wasm_eh(sess) {
add("-wasm-enable-eh", false);
}
if wants_wasm_eh(sess) {
add("-wasm-enable-eh", false);
}
if sess.target.os == "emscripten" && sess.panic_strategy() == PanicStrategy::Unwind {
add("-enable-emscripten-cxx-exceptions", false);
}
// HACK(eddyb) LLVM inserts `llvm.assume` calls to preserve align attributes