diff options
| author | Jan Sommer <jan.sommer@dlr.de> | 2023-08-21 19:03:17 +0200 |
|---|---|---|
| committer | Jan Sommer <jan.sommer@dlr.de> | 2024-09-03 09:19:29 +0200 |
| commit | 6f435cb07f647f41136af6c175dd6964dd7142b4 (patch) | |
| tree | b4a20b485624a8b8eddf9d3c20d3647dddbd1c2d /library/unwind | |
| parent | 6199b69c53a8c275ca3cd59647ea0af5ca29aae2 (diff) | |
| download | rust-6f435cb07f647f41136af6c175dd6964dd7142b4.tar.gz rust-6f435cb07f647f41136af6c175dd6964dd7142b4.zip | |
Port std library to RTEMS
Diffstat (limited to 'library/unwind')
| -rw-r--r-- | library/unwind/Cargo.toml | 7 | ||||
| -rw-r--r-- | library/unwind/src/lib.rs | 1 |
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( |
