From 2f924501c6384d475b6beb32df18ce32cb787aa7 Mon Sep 17 00:00:00 2001 From: Dameon Smith Date: Wed, 1 Feb 2023 21:51:47 -0600 Subject: [PATCH 1/2] Updating build.zig to support new API change. I updated zig today and the addExecutable API appears to have changed with it. I was able to get the build to run again with this change. --- build.zig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.zig b/build.zig index 3b0ac71..be0575c 100644 --- a/build.zig +++ b/build.zig @@ -564,7 +564,11 @@ pub fn build(b: *Builder) void { const file_path = std.fs.path.join(b.allocator, &[_][]const u8{ if (use_healed) "patches/healed" else "exercises", ex.main_file, }) catch unreachable; - const build_step = b.addExecutable(base_name, file_path); + const build_step = b.addExecutable(.{ + .name = base_name, + .root_source_file = .{ .path = file_path } + }); + build_step.install(); const verify_step = ZiglingStep.create(b, ex, use_healed); From f1aac142eaf33efe67ee4d67e445638df72a68df Mon Sep 17 00:00:00 2001 From: Chris Boesch <48591413+chrboesch@users.noreply.github.com> Date: Sat, 4 Feb 2023 15:06:20 +0100 Subject: [PATCH 2/2] new build number added --- build.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.zig b/build.zig index be0575c..05c891b 100644 --- a/build.zig +++ b/build.zig @@ -8,7 +8,7 @@ const print = std.debug.print; // When changing this version, be sure to also update README.md in two places: // 1) Getting Started // 2) Version Changes -const needed_version = std.SemanticVersion.parse("0.11.0-dev.1501") catch unreachable; +const needed_version = std.SemanticVersion.parse("0.11.0-dev.1568") catch unreachable; const Exercise = struct { /// main_file must have the format key_name.zig.