aboutsummaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
Diffstat (limited to 'test/src')
-rw-r--r--test/src/Cases.zig10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/src/Cases.zig b/test/src/Cases.zig
index 0f2645f0e0..6fedf43bf7 100644
--- a/test/src/Cases.zig
+++ b/test/src/Cases.zig
@@ -467,7 +467,7 @@ fn addFromDirInner(
// Cross-product to get all possible test combinations
for (targets) |target_query| {
const resolved_target = b.resolveTargetQuery(target_query);
- const target = resolved_target.target;
+ const target = resolved_target.result;
for (backends) |backend| {
if (backend == .stage2 and
target.cpu.arch != .wasm32 and target.cpu.arch != .x86_64)
@@ -647,8 +647,8 @@ pub fn lowerToBuildSteps(
parent_step.dependOn(&artifact.step);
},
.Execution => |expected_stdout| no_exec: {
- const run = if (case.target.target.ofmt == .c) run_step: {
- if (getExternalExecutor(host, &case.target.target, .{ .link_libc = true }) != .native) {
+ const run = if (case.target.result.ofmt == .c) run_step: {
+ if (getExternalExecutor(host, &case.target.result, .{ .link_libc = true }) != .native) {
// We wouldn't be able to run the compiled C code.
break :no_exec;
}
@@ -667,7 +667,7 @@ pub fn lowerToBuildSteps(
"--",
"-lc",
"-target",
- case.target.target.zigTriple(b.allocator) catch @panic("OOM"),
+ case.target.result.zigTriple(b.allocator) catch @panic("OOM"),
});
run_c.addArtifactArg(artifact);
break :run_step run_c;
@@ -693,7 +693,7 @@ pub fn lowerToBuildSteps(
continue; // Pass test.
}
- if (getExternalExecutor(host, &case.target.target, .{ .link_libc = true }) != .native) {
+ if (getExternalExecutor(host, &case.target.result, .{ .link_libc = true }) != .native) {
// We wouldn't be able to run the compiled C code.
continue; // Pass test.
}