start: disable extra start logic on various x86_64 subtargets

This commit is contained in:
Jacob Young 2023-04-03 14:17:00 -04:00
parent 821eb595f4
commit c91929090d
5 changed files with 10 additions and 4 deletions

View File

@ -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

View File

@ -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'

View File

@ -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

View File

@ -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'

View File

@ -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