| ... | @@ -3,9 +3,6 @@ | ... | @@ -3,9 +3,6 @@ |
| 3 | pub fn testAll(b: *Build, build_opts: BuildOptions) *Step { | 3 | pub fn testAll(b: *Build, build_opts: BuildOptions) *Step { |
| 4 | const macho_step = b.step("test-macho", "Run MachO tests"); | 4 | const macho_step = b.step("test-macho", "Run MachO tests"); |
| 5 | | 5 | |
| 6 | const default_target = b.resolveTargetQuery(.{ | | |
| 7 | .os_tag = .macos, | | |
| 8 | }); | | |
| 9 | const x86_64_target = b.resolveTargetQuery(.{ | 6 | const x86_64_target = b.resolveTargetQuery(.{ |
| 10 | .cpu_arch = .x86_64, | 7 | .cpu_arch = .x86_64, |
| 11 | .os_tag = .macos, | 8 | .os_tag = .macos, |
| ... | @@ -15,6 +12,13 @@ pub fn testAll(b: *Build, build_opts: BuildOptions) *Step { | ... | @@ -15,6 +12,13 @@ pub fn testAll(b: *Build, build_opts: BuildOptions) *Step { |
| 15 | .os_tag = .macos, | 12 | .os_tag = .macos, |
| 16 | }); | 13 | }); |
| 17 | | 14 | |
| | 15 | const default_target = switch (builtin.cpu.arch) { |
| | 16 | .x86_64, .aarch64 => b.resolveTargetQuery(.{ |
| | 17 | .os_tag = .macos, |
| | 18 | }), |
| | 19 | else => aarch64_target, |
| | 20 | }; |
| | 21 | |
| 18 | // Exercise linker with self-hosted backend (no LLVM) | 22 | // Exercise linker with self-hosted backend (no LLVM) |
| 19 | macho_step.dependOn(testHelloZig(b, .{ .use_llvm = false, .target = x86_64_target })); | 23 | macho_step.dependOn(testHelloZig(b, .{ .use_llvm = false, .target = x86_64_target })); |
| 20 | macho_step.dependOn(testRelocatableZig(b, .{ .use_llvm = false, .strip = true, .target = x86_64_target })); | 24 | macho_step.dependOn(testRelocatableZig(b, .{ .use_llvm = false, .strip = true, .target = x86_64_target })); |