mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 14:03:10 -05:00
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.
This commit is contained in:
parent
e95f966591
commit
48ee92a9a5
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue