| ... | @@ -168,7 +168,7 @@ pub fn build(b: *Builder) !void { | ... | @@ -168,7 +168,7 @@ pub fn build(b: *Builder) !void { |
| 168 | | 168 | |
| 169 | switch (mem.count(u8, git_describe, "-")) { | 169 | switch (mem.count(u8, git_describe, "-")) { |
| 170 | 0 => { | 170 | 0 => { |
| 171 | // Tagged release version (e.g. 0.7.0). | 171 | // Tagged release version (e.g. 0.8.0). |
| 172 | if (!mem.eql(u8, git_describe, version_string)) { | 172 | if (!mem.eql(u8, git_describe, version_string)) { |
| 173 | std.debug.print("Zig version '{s}' does not match Git tag '{s}'\n", .{ version_string, git_describe }); | 173 | std.debug.print("Zig version '{s}' does not match Git tag '{s}'\n", .{ version_string, git_describe }); |
| 174 | std.process.exit(1); | 174 | std.process.exit(1); |
| ... | @@ -176,7 +176,7 @@ pub fn build(b: *Builder) !void { | ... | @@ -176,7 +176,7 @@ pub fn build(b: *Builder) !void { |
| 176 | break :v version_string; | 176 | break :v version_string; |
| 177 | }, | 177 | }, |
| 178 | 2 => { | 178 | 2 => { |
| 179 | // Untagged development build (e.g. 0.7.0-684-gbbe2cca1a). | 179 | // Untagged development build (e.g. 0.8.0-684-gbbe2cca1a). |
| 180 | var it = mem.split(git_describe, "-"); | 180 | var it = mem.split(git_describe, "-"); |
| 181 | const tagged_ancestor = it.next() orelse unreachable; | 181 | const tagged_ancestor = it.next() orelse unreachable; |
| 182 | const commit_height = it.next() orelse unreachable; | 182 | const commit_height = it.next() orelse unreachable; |