Skip to content

Commit c8908cf

Browse files
committed
Simplify Wasm EH specific Rust flags
See: rust-lang/rust#112195
1 parent a87ba46 commit c8908cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ if [ "$LTO" = "true" ]; then
149149
fi
150150
if [ "$WASM_EH" = "true" ]; then
151151
COMMON_FLAGS+=" -fwasm-exceptions -sSUPPORT_LONGJMP=wasm"
152-
# `-Cpanic=unwind` implies `-mllvm -enable-emscripten-cxx-exceptions`
153-
export RUSTFLAGS+=" -Cpanic=abort -Cllvm-args=-wasm-enable-eh -Cllvm-args=-wasm-enable-sjlj"
152+
# https://github.com/rust-lang/rust/issues/112195
153+
export RUSTFLAGS+=" -Cllvm-args=-enable-emscripten-cxx-exceptions=0 -Cllvm-args=-wasm-enable-sjlj"
154154
else
155155
COMMON_FLAGS+=" -fexceptions"
156156
fi

0 commit comments

Comments
 (0)