Skip to content

Commit 88856c7

Browse files
committed
Add other apple targets to libunwind workaround
1 parent 7d7ca08 commit 88856c7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/backtrace/libunwind.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ impl Frame {
6666
//
6767
// Note the `skip_inner_frames.rs` test is skipped on macOS due to this
6868
// clause, and if this is fixed that test in theory can be run on macOS!
69-
if cfg!(target_os = "macos") || cfg!(target_os = "ios") {
69+
if cfg!(target_os = "macos")
70+
|| cfg!(target_os = "ios")
71+
|| cfg!(target_os = "tvos")
72+
|| cfg!(target_os = "watchos")
73+
{
7074
self.ip()
7175
} else {
7276
unsafe { uw::_Unwind_FindEnclosingFunction(self.ip()) }

0 commit comments

Comments
 (0)