diff options
Diffstat (limited to 'build.zig')
-rw-r--r-- | build.zig | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/build.zig b/build.zig index aea990e..9b16a14 100644 --- a/build.zig +++ b/build.zig @@ -23,10 +23,9 @@ fn define_subproj(name: []const u8, b: *std.Build, target: std.Build.ResolvedTar run_step.dependOn(&run_cmd.step); const test_exe = b.addTest(.{ .root_source_file = b.path(test_path), .target = target, .optimize = optimize }); - - const test_cmd = b.addRunArtifact(test_exe); + const run_unit_tests = b.addRunArtifact(test_exe); const test_step = b.step(test_task_name, test_task_desc); - test_step.dependOn(&test_cmd.step); + test_step.dependOn(&run_unit_tests.step); } pub fn build(b: *std.Build) !void { |