watchOS: add os to aarch64 architecture

Needed for creating libraries that run both on
physical Apple Watches and the watchOS simulator.
This commit is contained in:
Mario Nachbaur 2024-10-20 14:57:18 +02:00 committed by Alex Rønne Petersen
parent 8573836892
commit 9f84f7f921

View File

@ -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),