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-20 10:02:22+02:00
log8a16b59014e81521d77f28fbb8fda2c43223e1d9
tree7ae11d911212d83c71d5a4ed750bda02eda6dba5
parenta28960cf6f8e7c616af957c77438b392e70800d7
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
...@@ -3773,7 +3773,10 @@ pub fn cCallingConvention(target: *const Target) ?std.builtin.CallingConvention...@@ -3773,7 +3773,10 @@ pub fn cCallingConvention(target: *const Target) ?std.builtin.CallingConvention
3773 .lanai => .{ .lanai_sysv = .{} },3773 .lanai => .{ .lanai_sysv = .{} },
3774 .loongarch64 => .{ .loongarch64_lp64 = .{} },3774 .loongarch64 => .{ .loongarch64_lp64 = .{} },
3775 .loongarch32 => .{ .loongarch32_ilp32 = .{} },3775 .loongarch32 => .{ .loongarch32_ilp32 = .{} },
3776 .m68k => .{ .m68k_gnu = .{} },3776 .m68k => switch (target.os.tag) {
3777 .netbsd => .{ .m68k_sysv = .{} },
3778 else => .{ .m68k_gnu = .{} },
3779 },
3777 .m88k => .{ .m88k_sysv = .{} },3780 .m88k => .{ .m88k_sysv = .{} },
3778 .microblaze, .microblazeel => .{ .microblaze_std = .{} },3781 .microblaze, .microblazeel => .{ .microblaze_std = .{} },
3779 .msp430 => .{ .msp430_eabi = .{} },3782 .msp430 => .{ .msp430_eabi = .{} },