authorgravatar for alex_naskos@hotmail.comAlexandros Naskos <alex_naskos@hotmail.com> 2020-11-09 00:52:51+02:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2020-11-09 00:52:51+02:00
log4236518e3a53b510f8beb5ca67ec1baebcd07158
treebabf1e5b1efd2dcd23d87f2efae0a1bb5d6629d3
parent0c90ccc297e18f1a40a8111606a419e99732931f
parent9bc3442e41dfe7a7bf2fba1a0bacbedb980ea7f8
signature Signed by PGP key 4AEE18F83AFDEB23

Merge pull request #7033 from jedisct1/bump0.7

Bump Zig version to 0.7.0

1 files changed, 3 insertions(+), 3 deletions(-)

build.zig+3-3
......@@ -11,7 +11,7 @@ const fs = std.fs;
1111const InstallDirectoryOptions = std.build.InstallDirectoryOptions;
1212const assert = std.debug.assert;
1313
14const zig_version = std.builtin.Version{ .major = 0, .minor = 6, .patch = 0 };
14const zig_version = std.builtin.Version{ .major = 0, .minor = 7, .patch = 0 };
1515
1616pub fn build(b: *Builder) !void {
1717 b.setPreferredReleaseMode(.ReleaseFast);
......@@ -128,11 +128,11 @@ pub fn build(b: *Builder) !void {
128128 break :s b.fmt("dirty{x}", .{@truncate(u32, dirty_hash)});
129129 };
130130
131 // This will look like e.g. "0.6.0^0" for a tag commit.
131 // This will look like e.g. "0.7.0^0" for a tag commit.
132132 if (mem.endsWith(u8, git_sha_trimmed, "^0")) {
133133 const git_ver_string = git_sha_trimmed[0 .. git_sha_trimmed.len - 2];
134134 if (!mem.eql(u8, git_ver_string, version_string)) {
135 std.debug.print("Expected git tag '{}', found '{}'", .{ version_string, git_ver_string });
135 std.debug.print("Expected git tag '{}', found '{}'\n", .{ version_string, git_ver_string });
136136 std.process.exit(1);
137137 }
138138 break :v b.fmt("{}{}", .{ version_string, dirty_suffix });