commit 9f84f7f921d8a74926bb2f0ca1969b7b00f08172 (tree)
parent 8573836892ba1b7cd34d377b46258930161256c3
Author: Mario Nachbaur <marionauta@users.noreply.github.com>
Date: Sun, 20 Oct 2024 14:57:18 +0200
watchOS: add os to aarch64 architecture
Needed for creating libraries that run both on
physical Apple Watches and the watchOS simulator.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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),