summaryrefslogtreecommitdiffstatshomepage
path: root/build.zig
diff options
context:
space:
mode:
authorDameon Smith <dameon@niftyisland.io>2023-02-01 21:51:47 -0600
committerGitHub <noreply@github.com>2023-02-01 21:51:47 -0600
commit48ee92a9a534a8ead4002d6034656825d9bdb035 (patch)
tree3582a92c0e7d06f922113460149a0cac2be94854 /build.zig
parente95f96659137162be797d7757eb48fae6119d19e (diff)
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.
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig6
1 files changed, 5 insertions, 1 deletions
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);