From 4af763d401b48f7186650335c8e42e8fe29751bf Mon Sep 17 00:00:00 2001 From: Jay Petacat Date: Tue, 29 Dec 2020 20:35:47 -0600 Subject: stage2: SemVer compliance for development builds This matches the behavior of CMake builds. These changes should have been in PR #6509, but were missed. --- src/config.zig.in | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/config.zig.in') diff --git a/src/config.zig.in b/src/config.zig.in index 871c6e9abf..9d16cf3824 100644 --- a/src/config.zig.in +++ b/src/config.zig.in @@ -1,11 +1,6 @@ pub const have_llvm = true; pub const version: [:0]const u8 = "@ZIG_VERSION@"; -pub const semver: @import("std").SemanticVersion = .{ - .major = @ZIG_VERSION_MAJOR@, - .minor = @ZIG_VERSION_MINOR@, - .patch = @ZIG_VERSION_PATCH@, - .build = "@ZIG_GIT_REV@", -}; +pub const semver = try @import("std").SemanticVersion.parse(version); pub const log_scopes: []const []const u8 = &[_][]const u8{}; pub const zir_dumps: []const []const u8 = &[_][]const u8{}; pub const enable_tracy = false; -- cgit v1.2.3