authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-10-28 20:24:02+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-11-02 10:30:48+01:00
log20cdfe9fb6e5f54623e170b59781001dcc7e1d75
tree07d709b3d72381fdef7f6f036ee65ee13daccfd8
parentf7da31b1f43f5f707c9de841577e491ef115bb94
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: Pick arm_aapcs16_vfp for arm-watchos-* in cCallingConvention().

This is a legacy target, but we should still get it right.

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

lib/std/Target.zig+1
......@@ -3295,6 +3295,7 @@ pub fn cCallingConvention(target: Target) ?std.builtin.CallingConvention {
32953295 },
32963296 .arm, .armeb, .thumb, .thumbeb => switch (target.os.tag) {
32973297 .netbsd => .{ .arm_apcs = .{} },
3298 .watchos => .{ .arm_aapcs16_vfp = .{} },
32983299 else => switch (target.abi.floatAbi()) {
32993300 .soft => .{ .arm_aapcs = .{} },
33003301 .hard => .{ .arm_aapcs_vfp = .{} },