| ... | @@ -222,7 +222,7 @@ pub fn build(b: *Builder) !void { | ... | @@ -222,7 +222,7 @@ pub fn build(b: *Builder) !void { |
| 222 | | 222 | |
| 223 | switch (mem.count(u8, git_describe, "-")) { | 223 | switch (mem.count(u8, git_describe, "-")) { |
| 224 | 0 => { | 224 | 0 => { |
| 225 | // Tagged release version (e.g. 0.8.0). | 225 | // Tagged release version (e.g. 0.9.0). |
| 226 | if (!mem.eql(u8, git_describe, version_string)) { | 226 | if (!mem.eql(u8, git_describe, version_string)) { |
| 227 | std.debug.print("Zig version '{s}' does not match Git tag '{s}'\n", .{ version_string, git_describe }); | 227 | std.debug.print("Zig version '{s}' does not match Git tag '{s}'\n", .{ version_string, git_describe }); |
| 228 | std.process.exit(1); | 228 | std.process.exit(1); |
| ... | @@ -230,7 +230,7 @@ pub fn build(b: *Builder) !void { | ... | @@ -230,7 +230,7 @@ pub fn build(b: *Builder) !void { |
| 230 | break :v version_string; | 230 | break :v version_string; |
| 231 | }, | 231 | }, |
| 232 | 2 => { | 232 | 2 => { |
| 233 | // Untagged development build (e.g. 0.8.0-684-gbbe2cca1a). | 233 | // Untagged development build (e.g. 0.9.0-dev.2025+ecf0050a9). |
| 234 | var it = mem.split(u8, git_describe, "-"); | 234 | var it = mem.split(u8, git_describe, "-"); |
| 235 | const tagged_ancestor = it.next() orelse unreachable; | 235 | const tagged_ancestor = it.next() orelse unreachable; |
| 236 | const commit_height = it.next() orelse unreachable; | 236 | const commit_height = it.next() orelse unreachable; |