Skip to content

Commit ad403cb

Browse files
committed
test: use std.BuildGraph.zig_exe instead of "zig"
1 parent e3312e6 commit ad403cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ pub fn build(b: *std.Build) !void {
1313

1414
const test_step = b.step("test", "Run unit tests");
1515

16-
const core_tests = b.addSystemCommand(&.{ "zig", "build", "test" });
16+
const core_tests = b.addSystemCommand(&.{ b.graph.zig_exe, "build", "test" });
1717
core_tests.setCwd(b.path("src/core"));
1818
test_step.dependOn(&core_tests.step);
1919

20-
const clap_tests = b.addSystemCommand(&.{ "zig", "build", "test" });
20+
const clap_tests = b.addSystemCommand(&.{ b.graph.zig_exe, "build", "test" });
2121
clap_tests.setCwd(b.path("src/clap"));
2222
test_step.dependOn(&clap_tests.step);
2323
}

0 commit comments

Comments
 (0)