Skip to content

Commit

Permalink
Merge pull request #516 from thomcc/thomcc/apple-unwind
Browse files Browse the repository at this point in the history
Add other apple targets to libunwind workaround
  • Loading branch information
workingjubilee authored Jun 22, 2023
2 parents 7d7ca08 + 6eb620a commit 6f3ab0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backtrace/libunwind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl Frame {
//
// Note the `skip_inner_frames.rs` test is skipped on macOS due to this
// clause, and if this is fixed that test in theory can be run on macOS!
if cfg!(target_os = "macos") || cfg!(target_os = "ios") {
if cfg!(target_vendor = "apple") {
self.ip()
} else {
unsafe { uw::_Unwind_FindEnclosingFunction(self.ip()) }
Expand Down

0 comments on commit 6f3ab0b

Please sign in to comment.