std.Target: fix default calling convention for ps3

This commit is contained in:
Alex Rønne Petersen
2026-05-23 08:51:57 +02:00
parent 0cafb9b591
commit b9a00fe6aa
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -3752,7 +3752,7 @@ pub fn cCallingConvention(target: *const Target) ?std.builtin.CallingConvention
.riscv32, .riscv32be => .{ .riscv32_ilp32 = .{} },
.sparc64 => .{ .sparc64_sysv = .{} },
.sparc => .{ .sparc_sysv = .{} },
.powerpc64 => if (target.abi.isGnu())
.powerpc64 => if (target.os.tag == .ps3 or target.abi.isGnu())
.{ .powerpc64_elf = .{} }
else
.{ .powerpc64_elf_v2 = .{} },
+2 -1
View File
@@ -695,7 +695,8 @@ pub fn llvmMachineAbi(target: *const std.Target) ?[:0]const u8 {
.gnuabin32, .muslabin32 => "n32",
else => "n64",
},
.powerpc64, .powerpc64le => if (target.os.tag == .ps3) "elfv1" else "elfv2",
.powerpc64 => if (target.os.tag == .ps3) "elfv1" else "elfv2",
.powerpc64le => "elfv2",
.riscv64, .riscv64be => if (target.cpu.has(.riscv, .e))
"lp64e"
else if (target.cpu.has(.riscv, .d))