about summary refs log tree commit diff
path: root/library/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/unwind
parent6199b69c53a8c275ca3cd59647ea0af5ca29aae2 (diff)
downloadrust-6f435cb07f647f41136af6c175dd6964dd7142b4.tar.gz
rust-6f435cb07f647f41136af6c175dd6964dd7142b4.zip
Port std library to RTEMS
Diffstat (limited to 'library/unwind')
-rw-r--r--library/unwind/Cargo.toml7
-rw-r--r--library/unwind/src/lib.rs1
2 files changed, 8 insertions, 0 deletions
diff --git a/library/unwind/Cargo.toml b/library/unwind/Cargo.toml
index bbd1db8dfa5..590de31a678 100644
--- a/library/unwind/Cargo.toml
+++ b/library/unwind/Cargo.toml
@@ -34,3 +34,10 @@ llvm-libunwind = []
 # If crt-static is enabled, static link to `libunwind.a` provided by system
 # If crt-static is disabled, dynamic link to `libunwind.so` provided by system
 system-llvm-libunwind = []
+
+[lints.rust.unexpected_cfgs]
+level = "warn"
+check-cfg = [
+    # #[cfg(bootstrap)] rtems
+    'cfg(target_os, values("rtems"))',
+]
diff --git a/library/unwind/src/lib.rs b/library/unwind/src/lib.rs
index 250af912e07..26ed00bfbd5 100644
--- a/library/unwind/src/lib.rs
+++ b/library/unwind/src/lib.rs
@@ -22,6 +22,7 @@ cfg_if::cfg_if! {
         target_os = "l4re",
         target_os = "none",
         target_os = "espidf",
+        target_os = "rtems",
     ))] {
         // These "unix" family members do not have unwinder.
     } else if #[cfg(any(