Skip to content

Commit 9a8f0a8

Browse files
committed
Make libpanic_unwind build on CloudABI.
CloudABI uses LLVM's libunwind for stack unwinding. There was a small bug that went by unnoticed, namely that it was not built with -fno-rtti. This caused it to (indirectly) depend on the entire C++ runtime. Now that that issue has been resolved, it is also perfectly fine to make use of this library for programming languages other than C++.
1 parent 4cd918c commit 9a8f0a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libpanic_unwind/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ mod imp;
6868

6969
// i686-pc-windows-gnu and all others
7070
#[cfg(any(all(unix, not(target_os = "emscripten")),
71+
target_os = "cloudabi",
7172
target_os = "redox",
7273
all(windows, target_arch = "x86", target_env = "gnu")))]
7374
#[path = "gcc.rs"]

0 commit comments

Comments
 (0)