x86_64: enable normal start/test_runner logic on more targets

This commit is contained in:
Jacob Young 2023-04-29 17:57:23 -04:00
parent c81878978a
commit 10a4c2269d
3 changed files with 7 additions and 2 deletions

View file

@ -18,7 +18,7 @@ const start_sym_name = if (native_arch.isMIPS()) "__start" else "_start";
// Until then, we have simplified logic here for self-hosted. TODO remove this once
// self-hosted is capable enough to handle all of the real start.zig logic.
pub const simplified_logic =
(builtin.zig_backend == .stage2_x86_64 and (builtin.link_libc or builtin.os.tag == .plan9)) or
(builtin.zig_backend == .stage2_x86_64 and 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

@ -13,7 +13,6 @@ var fba = std.heap.FixedBufferAllocator.init(&cmdline_buffer);
pub fn main() void {
if (builtin.zig_backend == .stage2_wasm or
(builtin.zig_backend == .stage2_x86_64 and builtin.os.tag != .linux) or
builtin.zig_backend == .stage2_aarch64)
{
return mainSimple() catch @panic("test failure");

View file

@ -396,6 +396,12 @@ fn addFromDirInner(
// Other backends don't support new liveness format
continue;
}
if (backend == .stage2 and target.getOsTag() == .macos and
target.getCpuArch() == .x86_64 and builtin.cpu.arch == .aarch64)
{
// Rosetta has issues with ZLD
continue;
}
const next = ctx.cases.items.len;
try ctx.cases.append(.{