aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorr00ster91 <r00ster91@proton.me>2023-02-21 18:39:22 +0100
committerAndrew Kelley <andrew@ziglang.org>2023-06-17 13:17:34 -0700
commit6e84f469904a24615a6721265a88ad8dcb4ed83a (patch)
treed390e7738b996686749adbbd9a1c18f647058b3b /build.zig
parent96acc204b2c6080f0169ca3721c3b95a433c185b (diff)
downloadzig-6e84f469904a24615a6721265a88ad8dcb4ed83a.tar.gz
zig-6e84f469904a24615a6721265a88ad8dcb4ed83a.zip
std: replace builtin.Version with SemanticVersion
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.zig b/build.zig
index 9cfebebc56..28bc528772 100644
--- a/build.zig
+++ b/build.zig
@@ -9,7 +9,7 @@ const fs = std.fs;
const InstallDirectoryOptions = std.Build.InstallDirectoryOptions;
const assert = std.debug.assert;
-const zig_version = std.builtin.Version{ .major = 0, .minor = 11, .patch = 0 };
+const zig_version = std.SemanticVersion{ .major = 0, .minor = 11, .patch = 0 };
const stack_size = 32 * 1024 * 1024;
pub fn build(b: *std.Build) !void {
@@ -242,7 +242,7 @@ pub fn build(b: *std.Build) !void {
const commit_height = it.next().?;
const commit_id = it.next().?;
- const ancestor_ver = try std.builtin.Version.parse(tagged_ancestor);
+ const ancestor_ver = try std.SemanticVersion.parse(tagged_ancestor);
if (zig_version.order(ancestor_ver) != .gt) {
std.debug.print("Zig version '{}' must be greater than tagged ancestor '{}'\n", .{ zig_version, ancestor_ver });
std.process.exit(1);