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

This is a legacy target, but we should still get it right.
This commit is contained in:
Alex Rønne Petersen 2024-10-28 20:24:02 +01:00
parent f7da31b1f4
commit 20cdfe9fb6
No known key found for this signature in database

View File

@ -3295,6 +3295,7 @@ pub fn cCallingConvention(target: Target) ?std.builtin.CallingConvention {
},
.arm, .armeb, .thumb, .thumbeb => switch (target.os.tag) {
.netbsd => .{ .arm_apcs = .{} },
.watchos => .{ .arm_aapcs16_vfp = .{} },
else => switch (target.abi.floatAbi()) {
.soft => .{ .arm_aapcs = .{} },
.hard => .{ .arm_aapcs_vfp = .{} },