From 9f84f7f921d8a74926bb2f0ca1969b7b00f08172 Mon Sep 17 00:00:00 2001 From: Mario Nachbaur Date: Sun, 20 Oct 2024 14:57:18 +0200 Subject: [PATCH] watchOS: add os to aarch64 architecture Needed for creating libraries that run both on physical Apple Watches and the watchOS simulator. --- lib/std/debug/Dwarf/abi.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/debug/Dwarf/abi.zig b/lib/std/debug/Dwarf/abi.zig index b2c4cb9536..60fd10a794 100644 --- a/lib/std/debug/Dwarf/abi.zig +++ b/lib/std/debug/Dwarf/abi.zig @@ -293,7 +293,7 @@ pub fn regBytes( else => error.UnimplementedOs, }, .aarch64 => switch (builtin.os.tag) { - .macos, .ios => switch (reg_number) { + .macos, .ios, .watchos => switch (reg_number) { 0...28 => mem.asBytes(&ucontext_ptr.mcontext.ss.regs[reg_number]), 29 => mem.asBytes(&ucontext_ptr.mcontext.ss.fp), 30 => mem.asBytes(&ucontext_ptr.mcontext.ss.lr),