authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-05-23 08:52:27+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-05-23 11:02:36+02:00
logb87caa45464cbad80c9aa6d758edefeeced1475f
treee9c3e8368515694539a9a2c607130a8d19fd8150
parentb9a00fe6aa2908cbff085b80addaf39e7be64cbd
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: fix default calling convention for m68k

Apparently everyone actually just uses the GNU ABI.

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

lib/std/Target.zig+1-4
......@@ -3774,10 +3774,7 @@ pub fn cCallingConvention(target: *const Target) ?std.builtin.CallingConvention
37743774 .lanai => .{ .lanai_sysv = .{} },
37753775 .loongarch64 => .{ .loongarch64_lp64 = .{} },
37763776 .loongarch32 => .{ .loongarch32_ilp32 = .{} },
3777 .m68k => if (target.abi.isGnu() or target.abi.isMusl())
3778 .{ .m68k_gnu = .{} }
3779 else
3780 .{ .m68k_sysv = .{} },
3777 .m68k => .{ .m68k_gnu = .{} },
37813778 .microblaze, .microblazeel => .{ .microblaze_std = .{} },
37823779 .msp430 => .{ .msp430_eabi = .{} },
37833780 .or1k => .{ .or1k_sysv = .{} },