Skip to content

Commit 730c764

Browse files
committed
Omit inline asm when using emscripten with the js unwind abi
1 parent 2754e75 commit 730c764

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/unwind/src/wasm.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ pub unsafe fn _Unwind_DeleteException(exception: *mut _Unwind_Exception) {
3939
}
4040
}
4141

42+
#[any(not(target_os = "emscripten"), emscripten_wasm_eh)]
4243
pub unsafe fn _Unwind_RaiseException(exception: *mut _Unwind_Exception) -> _Unwind_Reason_Code {
4344
// This implementation is only used for `wasm*-unknown-unknown` targets. Such targets are not
4445
// guaranteed to support exceptions, and they default to `-C panic=abort`. Because an unknown

0 commit comments

Comments
 (0)