From df360a8ca27c83396aa0ccbcb832a285cf5b8547 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Mon, 19 Oct 2026 06:15:16 +0200 Subject: [PATCH] std.Target: fix cCallingConvention() to pick xtensa_windowed for abi != .call0 --- lib/std/Target.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/std/Target.zig b/lib/std/Target.zig index a737d3a02b19565ea804cd84e52161014fe024b6..0d7e2e734ff090b3e813183e73232b5c8c10d0c9 100644 --- a/lib/std/Target.zig +++ b/lib/std/Target.zig @@ -3758,7 +3758,10 @@ pub fn cCallingConvention(target: *const Target) ?std.builtin.CallingConvention .sh, .sheb => .{ .sh_gnu = .{} }, .ve => .{ .ve_sysv = .{} }, .xcore => .{ .xcore_xs1 = .{} }, - .xtensa, .xtensaeb => .{ .xtensa_call0 = .{} }, + .xtensa, .xtensaeb => switch (target.abi) { + .call0 => .{ .xtensa_call0 = .{} }, + else => .{ .xtensa_windowed = .{} }, + }, .amdgcn => .{ .amdgcn_device = .{} }, .nvptx, .nvptx64 => .nvptx_device, .spirv32, .spirv64 => .spirv_device, -- 2.54.0