Skip to content

Commit

Permalink
use target_vendor as requested
Browse files Browse the repository at this point in the history
  • Loading branch information
thomcc committed Jun 22, 2023
1 parent 88856c7 commit 6eb620a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/backtrace/libunwind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +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")
|| cfg!(target_os = "tvos")
|| cfg!(target_os = "watchos")
{
if cfg!(target_vendor = "apple") {
self.ip()
} else {
unsafe { uw::_Unwind_FindEnclosingFunction(self.ip()) }
Expand Down

0 comments on commit 6eb620a

Please sign in to comment.