File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ Currently implemented:
1111## Installation
1212
1313> [ !NOTE]
14- > The default branch requires Zig ` 0.16.0 ` or later.
14+ > The default branch requires Zig ` 0.17.0-dev.607+456b2ec07 ` or later.
1515
1616``` bash
1717# Initialize a `zig build` project if you haven't already
Original file line number Diff line number Diff line change @@ -31,13 +31,10 @@ pub fn build(b: *std.Build) void {
3131 const test_step = b .step ("test" , "Run all the tests" );
3232 test_step .dependOn (& run_tests .step );
3333
34- const kcov_bin = b .findProgram (&.{"kcov" }, &.{}) catch "kcov" ;
35-
36- const run_kcov = b .addSystemCommand (&.{
37- kcov_bin ,
38- "--clean" ,
39- "--exclude-line=unreachable,expect(false)" ,
40- });
34+ const run_kcov = std .Build .Step .Run .create (b , "run kcov" );
35+ run_kcov .addFileArg (b .findProgramLazy (.{ .names = &.{"kcov" } }));
36+ run_kcov .addArg ("--clean" );
37+ run_kcov .addArg ("--exclude-line=unreachable,expect(false)" );
4138 run_kcov .addPrefixedDirectoryArg ("--include-pattern=" , b .path ("." ));
4239 const coverage_output = run_kcov .addOutputDirectoryArg ("." );
4340 run_kcov .addArtifactArg (tests );
Original file line number Diff line number Diff line change 11.{
22 .name = .diffz ,
33 .version = "0.0.1" ,
4- .minimum_zig_version = "0.16.0 " ,
4+ .minimum_zig_version = "0.17.0-dev.607+456b2ec07 " ,
55 .paths = .{
66 "DiffMatchPatch.zig" ,
77 "LICENSE" ,
You can’t perform that action at this time.
0 commit comments