zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 20cdfe9fb6e5f54623e170b59781001dcc7e1d75 (tree)
parent f7da31b1f43f5f707c9de841577e491ef115bb94
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Mon, 28 Oct 2024 20:24:02 +0100

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

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

Diffstat:
Mlib/std/Target.zig | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/lib/std/Target.zig b/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 = .{} },