diff options
author | Chris Boesch <chrboesch@noreply.codeberg.org> | 2023-05-05 17:44:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-05 17:44:05 +0200 |
commit | 1c73ad29a7c76ffd937911906d5367e4a78fb161 (patch) | |
tree | 27334d5c8c630ddda776f07f07a1192c3a5cad2f /build.zig | |
parent | e273dd298e321f3ecfde1c820421725c0e37fc1d (diff) | |
parent | 0cd86d2f9b8a372c7c8ab2a253e3643cc2ab6212 (diff) |
Merge pull request #281 from perillo/add-healed-path-option
Add the -Dhealed-path option
Diffstat (limited to 'build.zig')
-rw-r--r-- | build.zig | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -118,11 +118,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); @@ -168,7 +169,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. // |