authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-05-02 14:59:03-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-05-02 22:06:02-07:00
log1a1f62a0ce0565a7f6da9b4b8654407f6c514cb0
tree0dd6b7df6ead49618770c708fcd17d9addc00d52
parent098bee0e5657bb6dcd92b2b2fa8056ffce893ffc

std: enable real start code always for LLVM backend


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

lib/std/start.zig+1-3
...@@ -29,9 +29,7 @@ comptime {...@@ -29,9 +29,7 @@ comptime {
29 builtin.zig_backend == .stage2_aarch64 or29 builtin.zig_backend == .stage2_aarch64 or
30 builtin.zig_backend == .stage2_arm or30 builtin.zig_backend == .stage2_arm or
31 builtin.zig_backend == .stage2_riscv64 or31 builtin.zig_backend == .stage2_riscv64 or
32 builtin.zig_backend == .stage2_sparcv9 or32 builtin.zig_backend == .stage2_sparcv9)
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))
35 {33 {
36 if (builtin.output_mode == .Exe) {34 if (builtin.output_mode == .Exe) {
37 if ((builtin.link_libc or builtin.object_format == .c) and @hasDecl(root, "main")) {35 if ((builtin.link_libc or builtin.object_format == .c) and @hasDecl(root, "main")) {
test/incremental/aarch64-macos/hello_world_with_updates.0.zig+1-1
...@@ -2,4 +2,4 @@...@@ -2,4 +2,4 @@
2// output_mode=Exe2// output_mode=Exe
3// target=aarch64-macos3// target=aarch64-macos
4//4//
5// :109:9: error: struct 'tmp.tmp' has no member named 'main'5// :107:9: error: struct 'tmp.tmp' has no member named 'main'
test/incremental/x86_64-linux/hello_world_with_updates.0.zig+1-1
...@@ -2,4 +2,4 @@...@@ -2,4 +2,4 @@
2// output_mode=Exe2// output_mode=Exe
3// target=x86_64-linux3// target=x86_64-linux
4//4//
5// :109:9: error: struct 'tmp.tmp' has no member named 'main'5// :107:9: error: struct 'tmp.tmp' has no member named 'main'
test/incremental/x86_64-macos/hello_world_with_updates.0.zig+1-1
...@@ -2,4 +2,4 @@...@@ -2,4 +2,4 @@
2// output_mode=Exe2// output_mode=Exe
3// target=x86_64-macos3// target=x86_64-macos
4//4//
5// :109:9: error: struct 'tmp.tmp' has no member named 'main'5// :107:9: error: struct 'tmp.tmp' has no member named 'main'