diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-04-10 17:05:09 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-04-10 18:35:14 -0700 |
| commit | 60eabc0eca5f678d0c6569a9565b1d6141459518 (patch) | |
| tree | 4865a7c2ebca0b21077e4e3b329e6ff80561dd67 /test/tests.zig | |
| parent | 38698f4f6aabb20639642afa58b17f31a43e162b (diff) | |
| download | zig-60eabc0eca5f678d0c6569a9565b1d6141459518.tar.gz zig-60eabc0eca5f678d0c6569a9565b1d6141459518.zip | |
std.Build.CompileStep: remove run() and install()
These functions are problematic in light of dependencies because they
run and install, respectively, for the *owner* package rather than for
the *user* package. By removing these functions, the build script is
forced to provide the *Build object to associate the new step with,
making everything less surprising.
Unfortunately, this is a widely breaking change.
see #15079
Diffstat (limited to 'test/tests.zig')
| -rw-r--r-- | test/tests.zig | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/tests.zig b/test/tests.zig index 26e684cd0d..a9bed635e2 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -596,7 +596,8 @@ pub fn addStandaloneTests( }); if (case.link_libc) exe.linkLibC(); - step.dependOn(&exe.run().step); + const run = b.addRunArtifact(exe); + step.dependOn(&run.step); } } } @@ -1004,7 +1005,7 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step { }, }; - const run = these_tests.run(); + const run = b.addRunArtifact(these_tests); run.skip_foreign_checks = true; run.setName(b.fmt("run test {s}-{s}-{s}-{s}-{s}-{s}", .{ options.name, @@ -1061,7 +1062,7 @@ pub fn addCAbiTests(b: *std.Build, skip_non_native: bool, skip_release: bool) *S triple_prefix, @tagName(optimize_mode), })); - const run = test_step.run(); + const run = b.addRunArtifact(test_step); run.skip_foreign_checks = true; step.dependOn(&run.step); } |
