Skip to content

Commit

Permalink
Add other apple targets to libunwind workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
thomcc committed Mar 25, 2023
1 parent a3406f9 commit 1746fbd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/backtrace/libunwind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ 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_os = "macos")
|| cfg!(target_os = "ios")
|| cfg!(target_os = "tvos")
|| cfg!(target_os = "watchos")
{
self.ip()
} else {
unsafe { uw::_Unwind_FindEnclosingFunction(self.ip()) }
Expand Down

0 comments on commit 1746fbd

Please sign in to comment.