mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
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:
parent
8573836892
commit
9f84f7f921
@ -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),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user