fix incr-check tests

This commit is contained in:
Andrew Kelley
2026-05-23 12:13:16 -07:00
parent 2edeeb5a64
commit 8b4e55372a
2 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -2970,7 +2970,7 @@ pub fn addIncrementalTests(b: *std.Build, test_step: *Step, test_filters: []cons
run.addFileArg(b.path("test/incremental/").path(b, entry.path));
run.addArg("--zig-lib-dir");
run.addFileArg(.zig_lib);
run.addDirectoryArg(.zig_lib);
run.addArgs(&.{ "--target", target_str });
+9 -3
View File
@@ -360,7 +360,10 @@ const Eval = struct {
const bin_name = try std.zig.EmitArtifact.bin.cacheName(arena, .{
.root_name = "root", // corresponds to the module name "root"
.target = &eval.target,
.cpu_arch = eval.target.cpu.arch,
.os_tag = eval.target.os.tag,
.ofmt = eval.target.ofmt,
.abi = eval.target.abi,
.output_mode = .Exe,
});
const bin_path = try Dir.path.join(arena, &.{ result_dir, bin_name });
@@ -487,9 +490,12 @@ const Eval = struct {
var argv_buf: [2][]const u8 = undefined;
const argv: []const []const u8, const is_foreign: bool = sw: switch (std.zig.system.getExternalExecutor(
io,
&eval.host,
&eval.target,
.{ .link_libc = eval.backend == .cbe },
.{
.link_libc = eval.backend == .cbe,
.host_cpu_arch = eval.host.cpu.arch,
.host_os_tag = eval.host.os.tag,
},
)) {
.bad_dl, .bad_os_or_cpu => {
// This binary cannot be executed on this host.