From df56954ca5cbfec623bd746009655697c36baad2 Mon Sep 17 00:00:00 2001 From: Jan Sommer Date: Sat, 7 Sep 2024 20:57:02 +0200 Subject: [PATCH] Disable libunwind for RTEMS OS (rust-lang/backtrace-rs#665) We added target support for RTEMS OS in https://github.com/rust-lang/rust/pull/127021 It has a POSIX interface, so we could reuse much of the `unix` backend, but currently libunwind is not supported. Add a `cfg` switch to disable libunwind for RTEMS. --- src/backtrace/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backtrace/mod.rs b/src/backtrace/mod.rs index 75925d97..70b86820 100644 --- a/src/backtrace/mod.rs +++ b/src/backtrace/mod.rs @@ -174,7 +174,7 @@ cfg_if::cfg_if! { any( all( unix, - not(target_os = "emscripten"), + not(any(target_os = "emscripten", target_os = "rtems")), not(all(target_os = "ios", target_arch = "arm")), ), all(