authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-19 06:23:24+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-19 06:23:24+02:00
log5c1bbdc433cec03cd8ae79601f52cb332015aaf9
tree541e4b71e592713614d2c0431ebb1b57180a5d2b
parentdf360a8ca27c83396aa0ccbcb832a285cf5b8547
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: fix cCallingConvention() to return m68k_sysv for m68k-netbsd


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

lib/std/Target.zig+4-1
...@@ -3748,7 +3748,10 @@ pub fn cCallingConvention(target: *const Target) ?std.builtin.CallingConvention...@@ -3748,7 +3748,10 @@ pub fn cCallingConvention(target: *const Target) ?std.builtin.CallingConvention
3748 .lanai => .{ .lanai_sysv = .{} },3748 .lanai => .{ .lanai_sysv = .{} },
3749 .loongarch64 => .{ .loongarch64_lp64 = .{} },3749 .loongarch64 => .{ .loongarch64_lp64 = .{} },
3750 .loongarch32 => .{ .loongarch32_ilp32 = .{} },3750 .loongarch32 => .{ .loongarch32_ilp32 = .{} },
3751 .m68k => .{ .m68k_gnu = .{} },3751 .m68k => switch (target.os.tag) {
3752 .netbsd => .{ .m68k_sysv = .{} },
3753 else => .{ .m68k_gnu = .{} },
3754 },
3752 .m88k => .{ .m88k_sysv = .{} },3755 .m88k => .{ .m88k_sysv = .{} },
3753 .microblaze, .microblazeel => .{ .microblaze_std = .{} },3756 .microblaze, .microblazeel => .{ .microblaze_std = .{} },
3754 .msp430 => .{ .msp430_eabi = .{} },3757 .msp430 => .{ .msp430_eabi = .{} },