Commit 20cdfe9fb6

Alex Rønne Petersen <alex@alexrp.com>
2024-10-28 20:24:02
std.Target: Pick arm_aapcs16_vfp for arm-watchos-* in cCallingConvention().
This is a legacy target, but we should still get it right.
1 parent f7da31b
Changed files (1)
lib
lib/std/Target.zig
@@ -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 = .{} },