mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 00:52:52 +00:00
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:
parent
f7da31b1f4
commit
20cdfe9fb6
@ -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 = .{} },
|
||||
|
Loading…
Reference in New Issue
Block a user