diff --git a/lib/std/start.zig b/lib/std/start.zig index 5690337317..81c7942bc1 100644 --- a/lib/std/start.zig +++ b/lib/std/start.zig @@ -29,9 +29,7 @@ comptime { builtin.zig_backend == .stage2_aarch64 or builtin.zig_backend == .stage2_arm or builtin.zig_backend == .stage2_riscv64 or - builtin.zig_backend == .stage2_sparcv9 or - (builtin.zig_backend == .stage2_llvm and native_os != .linux and native_os != .macos) or - (builtin.zig_backend == .stage2_llvm and native_arch != .x86_64 and native_arch != .aarch64)) + builtin.zig_backend == .stage2_sparcv9) { if (builtin.output_mode == .Exe) { if ((builtin.link_libc or builtin.object_format == .c) and @hasDecl(root, "main")) { diff --git a/test/incremental/aarch64-macos/hello_world_with_updates.0.zig b/test/incremental/aarch64-macos/hello_world_with_updates.0.zig index 11a379a9a9..300baac1a4 100644 --- a/test/incremental/aarch64-macos/hello_world_with_updates.0.zig +++ b/test/incremental/aarch64-macos/hello_world_with_updates.0.zig @@ -2,4 +2,4 @@ // output_mode=Exe // target=aarch64-macos // -// :109:9: error: struct 'tmp.tmp' has no member named 'main' +// :107:9: error: struct 'tmp.tmp' has no member named 'main' diff --git a/test/incremental/x86_64-linux/hello_world_with_updates.0.zig b/test/incremental/x86_64-linux/hello_world_with_updates.0.zig index 960fae5e64..47b5e9db7a 100644 --- a/test/incremental/x86_64-linux/hello_world_with_updates.0.zig +++ b/test/incremental/x86_64-linux/hello_world_with_updates.0.zig @@ -2,4 +2,4 @@ // output_mode=Exe // target=x86_64-linux // -// :109:9: error: struct 'tmp.tmp' has no member named 'main' +// :107:9: error: struct 'tmp.tmp' has no member named 'main' diff --git a/test/incremental/x86_64-macos/hello_world_with_updates.0.zig b/test/incremental/x86_64-macos/hello_world_with_updates.0.zig index 34440c4603..dd43748e6e 100644 --- a/test/incremental/x86_64-macos/hello_world_with_updates.0.zig +++ b/test/incremental/x86_64-macos/hello_world_with_updates.0.zig @@ -2,4 +2,4 @@ // output_mode=Exe // target=x86_64-macos // -// :109:9: error: struct 'tmp.tmp' has no member named 'main' +// :107:9: error: struct 'tmp.tmp' has no member named 'main'