diff options
| author | Chris Boesch <chrboesch@noreply.codeberg.org> | 2026-06-03 17:39:58 +0200 |
|---|---|---|
| committer | Chris Boesch <chrboesch@noreply.codeberg.org> | 2026-06-03 17:39:58 +0200 |
| commit | a403436fe8ca2ce7fc53e81365f91ecc6051ef97 (patch) | |
| tree | 6c3f664ff0a900e0d1132f54a1c0410baf389e33 /build.zig | |
| parent | 3b865a0c175e7537aeea389fb5f05c6e3489a685 (diff) | |
| parent | beeca8d510891a272868f447e8193b0fcee7e2fc (diff) | |
Merge branch 'main' into fix-build-update
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -30,7 +30,7 @@ comptime { } } -// Elrond owns the entire Ziglings logic now! +// Elrond the Wise owns the entire Ziglings logic now! // build.zig only builds it and forwards the chosen options as CLI flags. // Building just this one Run step keeps the build output readable and lets // Elrond iterate without the configure-phase cache getting in the way. @@ -46,6 +46,7 @@ pub fn build(b: *Build) !void { const rand = b.option(bool, "random", "Select random exercise"); const start = b.option(usize, "s", "Start at exercise"); const reset = b.option(bool, "reset", "Reset exercise progress"); + const logo = b.option(bool, "logo", "Display Ziglings logo"); const sep = std.fs.path.sep_str; const healed_path = if (override_healed_path) |path| @@ -57,7 +58,7 @@ pub fn build(b: *Build) !void { const elrond = b.addExecutable(.{ .name = "elrond", .root_module = b.createModule(.{ - .root_source_file = b.path("src/elrond.zig"), + .root_source_file = b.path("rivendell/elrond.zig"), .target = b.graph.host, }), }); @@ -87,6 +88,8 @@ pub fn build(b: *Build) !void { run.addArg("--random"); } else if (start) |s| { run.addArg(b.fmt("--start={d}", .{s})); + } else if (logo) |_| { + run.addArg("--logo"); } const ziglings_step = b.step("ziglings", "Run ziglings"); |
