summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2026-06-02 11:56:34 +0200
committerChris Boesch <chrboesch@noreply.codeberg.org>2026-06-02 11:56:34 +0200
commite69a865ce37e8fdb53273db7fd040284f42847bc (patch)
treecdcaba70f7afb17836890166c8747fed3b7be0a1 /build.zig
parentf6dda8181a28cc5bbb343900bec7d8157f51536e (diff)
fixed minor issues
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig5
1 files changed, 4 insertions, 1 deletions
diff --git a/build.zig b/build.zig
index b136583..29e4207 100644
--- a/build.zig
+++ b/build.zig
@@ -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|
@@ -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");