mirror of
https://github.com/ziglang/zig.git
synced 2026-02-20 16:24:51 +00:00
start: disable extra start logic on various x86_64 subtargets
This commit is contained in:
parent
821eb595f4
commit
c91929090d
@ -19,6 +19,7 @@ const start_sym_name = if (native_arch.isMIPS()) "__start" else "_start";
|
||||
// self-hosted is capable enough to handle all of the real start.zig logic.
|
||||
pub const simplified_logic =
|
||||
builtin.zig_backend == .stage2_wasm or
|
||||
(builtin.zig_backend == .stage2_x86_64 and (builtin.link_libc or builtin.os.tag == .plan9)) or
|
||||
builtin.zig_backend == .stage2_x86 or
|
||||
builtin.zig_backend == .stage2_aarch64 or
|
||||
builtin.zig_backend == .stage2_arm or
|
||||
|
||||
@ -2,4 +2,4 @@
|
||||
// output_mode=Exe
|
||||
// target=aarch64-macos
|
||||
//
|
||||
// :109:9: error: root struct of file 'tmp' has no member named 'main'
|
||||
// :110:9: error: root struct of file 'tmp' has no member named 'main'
|
||||
|
||||
@ -2,4 +2,7 @@
|
||||
// output_mode=Exe
|
||||
// target=x86_64-linux
|
||||
//
|
||||
// :109:9: error: root struct of file 'tmp' has no member named 'main'
|
||||
// :604:45: error: root struct of file 'tmp' has no member named 'main'
|
||||
// :553:12: note: called from here
|
||||
// :503:36: note: called from here
|
||||
// :466:17: note: called from here
|
||||
|
||||
@ -2,4 +2,4 @@
|
||||
// output_mode=Exe
|
||||
// target=x86_64-macos
|
||||
//
|
||||
// :109:9: error: root struct of file 'tmp' has no member named 'main'
|
||||
// :110:9: error: root struct of file 'tmp' has no member named 'main'
|
||||
|
||||
@ -2,4 +2,6 @@
|
||||
// output_mode=Exe
|
||||
// target=x86_64-windows
|
||||
//
|
||||
// :130:9: error: root struct of file 'tmp' has no member named 'main'
|
||||
// :604:45: error: root struct of file 'tmp' has no member named 'main'
|
||||
// :553:12: note: called from here
|
||||
// :389:65: note: called from here
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user