Unconditionally pass -wasm-enable-eh
This commit is contained in:
parent
861c7e74c8
commit
658a0a20ea
2 changed files with 7 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue