Skip to content

Commit 4d25c51

Browse files
committed
libunwind: readd link attrs to _Unwind_Backtrace
It seems the removal of these in 1c07096 was unintended; readding them fixes the build. fixes #93349
1 parent a7f3757 commit 4d25c51

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

library/unwind/src/libunwind.rs

+4
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,10 @@ if #[cfg(not(all(target_os = "ios", target_arch = "arm")))] {
246246
extern "C-unwind" {
247247
pub fn _Unwind_RaiseException(exception: *mut _Unwind_Exception) -> _Unwind_Reason_Code;
248248
}
249+
#[cfg_attr(
250+
all(feature = "llvm-libunwind", any(target_os = "fuchsia", target_os = "linux")),
251+
link(name = "unwind", kind = "static", modifiers = "-bundle")
252+
)]
249253
extern "C" {
250254
pub fn _Unwind_Backtrace(trace: _Unwind_Trace_Fn,
251255
trace_argument: *mut c_void)

0 commit comments

Comments
 (0)