File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed
Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11const std = @import ("std" );
22const 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
66pub 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 (.{});
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-dev.2510+bcb5218a2 " ,
4+ .minimum_zig_version = "0.16.0" ,
55 .paths = .{
66 "DiffMatchPatch.zig" ,
77 "LICENSE" ,
You can’t perform that action at this time.
0 commit comments