Commit 28cb887275

mlugg <mlugg@mlugg.co.uk>
2024-10-16 13:30:45
Zcu: correct `callconvSupported` for self-hosted aarch64
1 parent 04ffc1c
Changed files (1)
src/Zcu.zig
@@ -3611,7 +3611,10 @@ pub fn callconvSupported(zcu: *Zcu, cc: std.builtin.CallingConvention) union(enu
             else => false,
         },
         .stage2_aarch64 => switch (cc) {
-            .aarch64_aapcs => |opts| opts.incoming_stack_alignment == null,
+            .aarch64_aapcs,
+            .aarch64_aapcs_darwin,
+            .aarch64_aapcs_win,
+            => |opts| opts.incoming_stack_alignment == null,
             .naked => true,
             else => false,
         },