Skip to content

Commit 3b13aa0

Browse files
committed
Mark __cpp_exception as weak to fix duplicate symbol errors
1 parent 2754e75 commit 3b13aa0

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
@@ -55,6 +55,7 @@ pub unsafe fn _Unwind_RaiseException(exception: *mut _Unwind_Exception) -> _Unwi
5555
// unwinding for llvm intrinsics complicates things in the backend.
5656
core::arch::asm!("
5757
.tagtype __cpp_exception i32
58+
.globl __cpp_exception
5859
local.get {exc}
5960
throw __cpp_exception
6061
", exc = in(local) exception, options(may_unwind, noreturn, nostack));

0 commit comments

Comments
 (0)