Skip to content

Commit 763ee79

Browse files
author
Chris Boesch
authored
Merge pull request ratfactor#177 from DameonSmith/patch-1
Updating build.zig to support new API change.
2 parents 4056f0c + 7ed121e commit 763ee79

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

build.zig

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const print = std.debug.print;
88
// When changing this version, be sure to also update README.md in two places:
99
// 1) Getting Started
1010
// 2) Version Changes
11-
const needed_version = std.SemanticVersion.parse("0.11.0-dev.1501") catch unreachable;
11+
const needed_version = std.SemanticVersion.parse("0.11.0-dev.1568") catch unreachable;
1212

1313
const Exercise = struct {
1414
/// main_file must have the format key_name.zig.
@@ -564,7 +564,11 @@ pub fn build(b: *Builder) void {
564564
const file_path = std.fs.path.join(b.allocator, &[_][]const u8{
565565
if (use_healed) "patches/healed" else "exercises", ex.main_file,
566566
}) catch unreachable;
567-
const build_step = b.addExecutable(base_name, file_path);
567+
const build_step = b.addExecutable(.{
568+
.name = base_name,
569+
.root_source_file = .{ .path = file_path }
570+
});
571+
568572
build_step.install();
569573

570574
const verify_step = ZiglingStep.create(b, ex, use_healed);

0 commit comments

Comments
 (0)