diff options
| author | Jay Petacat <jay@jayschwa.net> | 2020-12-29 20:35:47 -0600 |
|---|---|---|
| committer | Jay Petacat <jay@jayschwa.net> | 2020-12-29 23:25:58 -0600 |
| commit | 4af763d401b48f7186650335c8e42e8fe29751bf (patch) | |
| tree | 1d7738e9271540b145be4fb4eb5dfa79d194ce1a /src | |
| parent | 3634d44d08c73326c7783cf2a3095acb50eb2e1c (diff) | |
| download | zig-4af763d401b48f7186650335c8e42e8fe29751bf.tar.gz zig-4af763d401b48f7186650335c8e42e8fe29751bf.zip | |
stage2: SemVer compliance for development builds
This matches the behavior of CMake builds. These changes should have
been in PR #6509, but were missed.
Diffstat (limited to 'src')
| -rw-r--r-- | src/config.zig.in | 7 |
1 files changed, 1 insertions, 6 deletions
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; |
