| ... | @@ -11,7 +11,7 @@ const fs = std.fs; | ... | @@ -11,7 +11,7 @@ const fs = std.fs; |
| 11 | const InstallDirectoryOptions = std.build.InstallDirectoryOptions; | 11 | const InstallDirectoryOptions = std.build.InstallDirectoryOptions; |
| 12 | const assert = std.debug.assert; | 12 | const assert = std.debug.assert; |
| 13 | | 13 | |
| 14 | const zig_version = std.builtin.Version{ .major = 0, .minor = 6, .patch = 0 }; | 14 | const zig_version = std.builtin.Version{ .major = 0, .minor = 7, .patch = 0 }; |
| 15 | | 15 | |
| 16 | pub fn build(b: *Builder) !void { | 16 | pub fn build(b: *Builder) !void { |
| 17 | b.setPreferredReleaseMode(.ReleaseFast); | 17 | b.setPreferredReleaseMode(.ReleaseFast); |
| ... | @@ -128,11 +128,11 @@ pub fn build(b: *Builder) !void { | ... | @@ -128,11 +128,11 @@ pub fn build(b: *Builder) !void { |
| 128 | break :s b.fmt("dirty{x}", .{@truncate(u32, dirty_hash)}); | 128 | break :s b.fmt("dirty{x}", .{@truncate(u32, dirty_hash)}); |
| 129 | }; | 129 | }; |
| 130 | | 130 | |
| 131 | // This will look like e.g. "0.6.0^0" for a tag commit. | 131 | // This will look like e.g. "0.7.0^0" for a tag commit. |
| 132 | if (mem.endsWith(u8, git_sha_trimmed, "^0")) { | 132 | if (mem.endsWith(u8, git_sha_trimmed, "^0")) { |
| 133 | const git_ver_string = git_sha_trimmed[0 .. git_sha_trimmed.len - 2]; | 133 | const git_ver_string = git_sha_trimmed[0 .. git_sha_trimmed.len - 2]; |
| 134 | if (!mem.eql(u8, git_ver_string, version_string)) { | 134 | if (!mem.eql(u8, git_ver_string, version_string)) { |
| 135 | std.debug.print("Expected git tag '{}', found '{}'", .{ version_string, git_ver_string }); | 135 | std.debug.print("Expected git tag '{}', found '{}'\n", .{ version_string, git_ver_string }); |
| 136 | std.process.exit(1); | 136 | std.process.exit(1); |
| 137 | } | 137 | } |
| 138 | break :v b.fmt("{}{}", .{ version_string, dirty_suffix }); | 138 | break :v b.fmt("{}{}", .{ version_string, dirty_suffix }); |