diff options
| author | Chris Boesch <[email protected]> | 2023-05-06 15:29:22 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-06 15:29:22 +0200 |
| commit | f1368f4f812cce360e932a2b337f07aa0f11ef65 (patch) | |
| tree | a377aba55f6542ab83f8f44648fec9a439ed93a5 /build.zig | |
| parent | 2027c6a403408f07640aa0fa22d6dc7d02da4134 (diff) | |
| parent | e5341b91c107894e585e515731d5ec34fd56c1af (diff) | |
| download | ziglings-f1368f4f812cce360e932a2b337f07aa0f11ef65.tar.xz ziglings-f1368f4f812cce360e932a2b337f07aa0f11ef65.zip | |
Merge branch 'ratfactor:main' into testing
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -122,11 +122,12 @@ pub fn build(b: *Build) !void { \\ ; - const use_healed = b.option(bool, "healed", "Run exercises from patches/healed") orelse false; + const healed = b.option(bool, "healed", "Run exercises from patches/healed") orelse false; + const override_healed_path = b.option([]const u8, "healed-path", "Override healed path"); const exno: ?usize = b.option(usize, "n", "Select exercise"); - const healed_path = "patches/healed"; - const work_path = if (use_healed) healed_path else "exercises"; + const healed_path = if (override_healed_path) |path| path else "patches/healed"; + const work_path = if (healed) healed_path else "exercises"; const header_step = PrintStep.create(b, logo); @@ -172,7 +173,7 @@ pub fn build(b: *Build) !void { start_step.dependOn(&prev_step.step); return; - } else if (use_healed and false) { + } else if (healed and false) { // Special case when healed by the eowyn script, where we can make the // code more efficient. // |
