Commit 9f84f7f921

Mario Nachbaur <marionauta@users.noreply.github.com>
2024-10-20 14:57:18
watchOS: add os to aarch64 architecture
Needed for creating libraries that run both on physical Apple Watches and the watchOS simulator.
1 parent 8573836
Changed files (1)
lib
std
debug
Dwarf
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),