mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
std: enable real start code always for LLVM backend
This commit is contained in:
parent
098bee0e56
commit
1a1f62a0ce
@ -29,9 +29,7 @@ comptime {
|
|||||||
builtin.zig_backend == .stage2_aarch64 or
|
builtin.zig_backend == .stage2_aarch64 or
|
||||||
builtin.zig_backend == .stage2_arm or
|
builtin.zig_backend == .stage2_arm or
|
||||||
builtin.zig_backend == .stage2_riscv64 or
|
builtin.zig_backend == .stage2_riscv64 or
|
||||||
builtin.zig_backend == .stage2_sparcv9 or
|
builtin.zig_backend == .stage2_sparcv9)
|
||||||
(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))
|
|
||||||
{
|
{
|
||||||
if (builtin.output_mode == .Exe) {
|
if (builtin.output_mode == .Exe) {
|
||||||
if ((builtin.link_libc or builtin.object_format == .c) and @hasDecl(root, "main")) {
|
if ((builtin.link_libc or builtin.object_format == .c) and @hasDecl(root, "main")) {
|
||||||
|
|||||||
@ -2,4 +2,4 @@
|
|||||||
// output_mode=Exe
|
// output_mode=Exe
|
||||||
// target=aarch64-macos
|
// 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'
|
||||||
|
|||||||
@ -2,4 +2,4 @@
|
|||||||
// output_mode=Exe
|
// output_mode=Exe
|
||||||
// target=x86_64-linux
|
// 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'
|
||||||
|
|||||||
@ -2,4 +2,4 @@
|
|||||||
// output_mode=Exe
|
// output_mode=Exe
|
||||||
// target=x86_64-macos
|
// 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'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user