diff options
| author | r00ster91 <r00ster91@proton.me> | 2023-02-21 18:39:22 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-06-17 13:17:34 -0700 |
| commit | 6e84f469904a24615a6721265a88ad8dcb4ed83a (patch) | |
| tree | d390e7738b996686749adbbd9a1c18f647058b3b /build.zig | |
| parent | 96acc204b2c6080f0169ca3721c3b95a433c185b (diff) | |
| download | zig-6e84f469904a24615a6721265a88ad8dcb4ed83a.tar.gz zig-6e84f469904a24615a6721265a88ad8dcb4ed83a.zip | |
std: replace builtin.Version with SemanticVersion
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |
