Skip to content

Commit b48fde9

Browse files
committed
update to zig 0.17.0-dev.607+456b2ec07
1 parent d080c1e commit b48fde9

3 files changed

Lines changed: 6 additions & 9 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

build.zig

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff 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);

build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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",

0 commit comments

Comments
 (0)