Skip to content

Commit b39fe07

Browse files
committed
update to Zig 0.16.0
1 parent d93d573 commit b39fe07

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ Currently implemented:
1111
## Installation
1212

1313
> [!NOTE]
14-
> The minimum supported Zig version is `0.16.0-dev.2510+bcb5218a2`.
15-
> Consider using previous commits when targeting older Zig version like `0.15.2`.
14+
> The default branch requires Zig `0.16.0` or later.
1615
1716
```bash
1817
# Initialize a `zig build` project if you haven't already

build.zig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
const std = @import("std");
22
const builtin = @import("builtin");
33

4-
const minimum_zig_version = std.SemanticVersion.parse("0.14.0") catch unreachable;
4+
const minimum_zig_version = std.SemanticVersion.parse(@import("build.zig.zon").minimum_zig_version) catch unreachable;
55

66
pub fn build(b: *std.Build) void {
7-
if (comptime (builtin.zig_version.order(minimum_zig_version) == .lt)) {
7+
comptime if (builtin.zig_version.order(minimum_zig_version) == .lt) {
88
@compileError(std.fmt.comptimePrint(
99
\\Your Zig version does not meet the minimum build requirement:
10-
\\ required Zig version: {[minimum_zig_version]}
11-
\\ actual Zig version: {[current_version]}
10+
\\ required Zig version: {[minimum_zig_version]f}
11+
\\ actual Zig version: {[current_version]f}
1212
\\
1313
, .{
1414
.current_version = builtin.zig_version,
1515
.minimum_zig_version = minimum_zig_version,
1616
}));
17-
}
17+
};
1818

1919
const target = b.standardTargetOptions(.{});
2020
const optimize = b.standardOptimizeOption(.{});

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-dev.2510+bcb5218a2",
4+
.minimum_zig_version = "0.16.0",
55
.paths = .{
66
"DiffMatchPatch.zig",
77
"LICENSE",

0 commit comments

Comments
 (0)