about summary refs log tree commit diff
path: root/library/panic_unwind
diff options
context:
space:
mode:
authorJan Sommer <jan.sommer@dlr.de>2023-08-21 19:03:17 +0200
committerJan Sommer <jan.sommer@dlr.de>2024-09-03 09:19:29 +0200
commit6f435cb07f647f41136af6c175dd6964dd7142b4 (patch)
treeb4a20b485624a8b8eddf9d3c20d3647dddbd1c2d /library/panic_unwind
parent6199b69c53a8c275ca3cd59647ea0af5ca29aae2 (diff)
Port std library to RTEMS
Diffstat (limited to 'library/panic_unwind')
-rw-r--r--library/panic_unwind/Cargo.toml7
-rw-r--r--library/panic_unwind/src/lib.rs2
2 files changed, 8 insertions, 1 deletions
diff --git a/library/panic_unwind/Cargo.toml b/library/panic_unwind/Cargo.toml
index f830808d196..6d1f9764efb 100644
--- a/library/panic_unwind/Cargo.toml
+++ b/library/panic_unwind/Cargo.toml
@@ -20,3 +20,10 @@ cfg-if = { version = "1.0", features = ['rustc-dep-of-std'] }
 
 [target.'cfg(not(all(windows, target_env = "msvc")))'.dependencies]
 libc = { version = "0.2", default-features = false }
+
+[lints.rust.unexpected_cfgs]
+level = "warn"
+check-cfg = [
+    # #[cfg(bootstrap)] rtems
+    'cfg(target_os, values("rtems"))',
+]
diff --git a/library/panic_unwind/src/lib.rs b/library/panic_unwind/src/lib.rs
index 2d174f4b1a4..4552fb68d26 100644
--- a/library/panic_unwind/src/lib.rs
+++ b/library/panic_unwind/src/lib.rs
@@ -48,7 +48,7 @@ cfg_if::cfg_if! {
         target_os = "psp",
         target_os = "xous",
         target_os = "solid_asp3",
-        all(target_family = "unix", not(target_os = "espidf")),
+        all(target_family = "unix", not(any(target_os = "espidf", target_os = "rtems"))),
         all(target_vendor = "fortanix", target_env = "sgx"),
         target_family = "wasm",
     ))] {