authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-19 06:15:16+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-20 10:02:18+02:00
loga28960cf6f8e7c616af957c77438b392e70800d7
tree57c0eaf270420a70e2db4b048410c73504d0edb9
parentf0bf7948ca2e47b109f7fe93546369871e087759
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: fix cCallingConvention() to pick xtensa_windowed for abi != .call0


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

lib/std/Target.zig+4-1
......@@ -3783,7 +3783,10 @@ pub fn cCallingConvention(target: *const Target) ?std.builtin.CallingConvention
37833783 .sh, .sheb => .{ .sh_gnu = .{} },
37843784 .ve => .{ .ve_sysv = .{} },
37853785 .xcore => .{ .xcore_xs1 = .{} },
3786 .xtensa, .xtensaeb => .{ .xtensa_call0 = .{} },
3786 .xtensa, .xtensaeb => switch (target.abi) {
3787 .call0 => .{ .xtensa_call0 = .{} },
3788 else => .{ .xtensa_windowed = .{} },
3789 },
37873790 .amdgcn => .{ .amdgcn_device = .{} },
37883791 .nvptx, .nvptx64 => .nvptx_device,
37893792 .spirv32, .spirv64 => .spirv_device,