File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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 = .known_folders ,
33 .version = "0.0.0" ,
4- .minimum_zig_version = "0.16.0-dev.1976+8e091047b " ,
4+ .minimum_zig_version = "0.16.0" ,
55 .dependencies = .{},
66 .paths = .{
77 "build.zig" ,
You can’t perform that action at this time.
0 commit comments