authorgravatar for 124872+jedisct1@users.noreply.github.comFrank Denis <124872+jedisct1@users.noreply.github.com> 2020-11-08 23:50:44+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-11-09 15:36:26-07:00
log61507d95d87411f932e18127ef82bc1ea422dc3c
treebabf1e5b1efd2dcd23d87f2efae0a1bb5d6629d3
parent0c90ccc297e18f1a40a8111606a419e99732931f

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;...@@ -11,7 +11,7 @@ const fs = std.fs;
11const InstallDirectoryOptions = std.build.InstallDirectoryOptions;11const InstallDirectoryOptions = std.build.InstallDirectoryOptions;
12const assert = std.debug.assert;12const 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
16pub fn build(b: *Builder) !void {16pub fn build(b: *Builder) !void {
17 b.setPreferredReleaseMode(.ReleaseFast);17 b.setPreferredReleaseMode(.ReleaseFast);
...@@ -128,11 +128,11 @@ pub fn build(b: *Builder) !void {...@@ -128,11 +128,11 @@ pub fn build(b: *Builder) !void {
128 break :s b.fmt("dirty{x}", .{@truncate(u32, dirty_hash)});128 break :s b.fmt("dirty{x}", .{@truncate(u32, dirty_hash)});
129 };129 };
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.
132 if (mem.endsWith(u8, git_sha_trimmed, "^0")) {132 if (mem.endsWith(u8, git_sha_trimmed, "^0")) {
133 const git_ver_string = git_sha_trimmed[0 .. git_sha_trimmed.len - 2];133 const git_ver_string = git_sha_trimmed[0 .. git_sha_trimmed.len - 2];
134 if (!mem.eql(u8, git_ver_string, version_string)) {134 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 });
136 std.process.exit(1);136 std.process.exit(1);
137 }137 }
138 break :v b.fmt("{}{}", .{ version_string, dirty_suffix });138 break :v b.fmt("{}{}", .{ version_string, dirty_suffix });