Skip to content

Commit 1b5a43f

Browse files
committed
start.zig: make sure macos uses full startup code
1 parent 88d87d6 commit 1b5a43f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/std/start.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ comptime {
3030
builtin.zig_backend == .stage2_arm or
3131
builtin.zig_backend == .stage2_riscv64 or
3232
builtin.zig_backend == .stage2_sparcv9 or
33-
(builtin.zig_backend == .stage2_llvm and native_os != .linux) or
34-
(builtin.zig_backend == .stage2_llvm and native_arch != .x86_64))
33+
(builtin.zig_backend == .stage2_llvm and native_os != .linux and native_os != .macos) or
34+
(builtin.zig_backend == .stage2_llvm and native_arch != .x86_64 and native_arch != .aarch64))
3535
{
3636
if (builtin.output_mode == .Exe) {
3737
if ((builtin.link_libc or builtin.object_format == .c) and @hasDecl(root, "main")) {

0 commit comments

Comments
 (0)