authorgravatar for marionauta@users.noreply.github.comMario Nachbaur <marionauta@users.noreply.github.com> 2024-10-20 14:57:18+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-10-21 09:24:24+02:00
log9f84f7f921d8a74926bb2f0ca1969b7b00f08172
tree141325804d8d73c35d00e0775addb883a0898be1
parent8573836892ba1b7cd34d377b46258930161256c3

watchOS: add os to aarch64 architecture

Needed for creating libraries that run both on physical Apple Watches and the watchOS simulator.

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/debug/Dwarf/abi.zig+1-1
...@@ -293,7 +293,7 @@ pub fn regBytes(...@@ -293,7 +293,7 @@ pub fn regBytes(
293 else => error.UnimplementedOs,293 else => error.UnimplementedOs,
294 },294 },
295 .aarch64 => switch (builtin.os.tag) {295 .aarch64 => switch (builtin.os.tag) {
296 .macos, .ios => switch (reg_number) {296 .macos, .ios, .watchos => switch (reg_number) {
297 0...28 => mem.asBytes(&ucontext_ptr.mcontext.ss.regs[reg_number]),297 0...28 => mem.asBytes(&ucontext_ptr.mcontext.ss.regs[reg_number]),
298 29 => mem.asBytes(&ucontext_ptr.mcontext.ss.fp),298 29 => mem.asBytes(&ucontext_ptr.mcontext.ss.fp),
299 30 => mem.asBytes(&ucontext_ptr.mcontext.ss.lr),299 30 => mem.asBytes(&ucontext_ptr.mcontext.ss.lr),