Skip to content

Commit

Permalink
Enable libunwind for rtems (#682)
Browse files Browse the repository at this point in the history
In order to switch the RTEMS port to `panic_unwind`
these changes need to be added in `backtrace_rs`. 

Once this is merged and the submodule updated in rustc
I will add another PR there to make the switch.
  • Loading branch information
thesummer authored Jan 3, 2025
1 parent a9c4658 commit 4d7906b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/backtrace/libunwind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ mod uw {
not(all(target_os = "freebsd", target_arch = "arm")),
not(all(target_os = "linux", target_arch = "arm")),
not(all(target_os = "horizon", target_arch = "arm")),
not(all(target_os = "rtems", target_arch = "arm")),
not(all(target_os = "vita", target_arch = "arm")),
))] {
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion src/backtrace/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ cfg_if::cfg_if! {
any(
all(
unix,
not(any(target_os = "emscripten", target_os = "rtems")),
not(target_os = "emscripten"),
not(all(target_os = "ios", target_arch = "arm")),
),
all(
Expand Down

0 comments on commit 4d7906b

Please sign in to comment.