Skip to content

Commit 9f84f7f

Browse files
marionautaalexrp
authored andcommitted
watchOS: add os to aarch64 architecture
Needed for creating libraries that run both on physical Apple Watches and the watchOS simulator.
1 parent 8573836 commit 9f84f7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/debug/Dwarf/abi.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ pub fn regBytes(
293293
else => error.UnimplementedOs,
294294
},
295295
.aarch64 => switch (builtin.os.tag) {
296-
.macos, .ios => switch (reg_number) {
296+
.macos, .ios, .watchos => switch (reg_number) {
297297
0...28 => mem.asBytes(&ucontext_ptr.mcontext.ss.regs[reg_number]),
298298
29 => mem.asBytes(&ucontext_ptr.mcontext.ss.fp),
299299
30 => mem.asBytes(&ucontext_ptr.mcontext.ss.lr),

0 commit comments

Comments
 (0)