aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorManlio Perillo <manlio.perillo@gmail.com>2023-04-04 18:32:30 +0200
committerManlio Perillo <manlio.perillo@gmail.com>2023-04-04 18:32:30 +0200
commit36e3f577ca9d4ae0eca74a31e5a9da8b248111ce (patch)
tree7ef06dce8aef5db8e12dbab2c5bc3aee137debd0
parent45713ec8ab21f81291bc14e2725730dac26d5137 (diff)
build: replace the logo step with the header step
Remove the logo step, and use PrintStep for the header step. The logo step was added as a quick fix after the Builder.addLog function was removed. Now the logo is no longer shown when running `zig build -l` or `zig build -h`.
-rw-r--r--build.zig8
1 files changed, 3 insertions, 5 deletions
diff --git a/build.zig b/build.zig
index a315a51..ed5950d 100644
--- a/build.zig
+++ b/build.zig
@@ -533,13 +533,11 @@ pub fn build(b: *Build) !void {
\\
\\
;
- const header_step = b.step("info", logo);
- const logo_step = PrintStep.create(b, logo, std.io.getStdErr());
- logo_step.step.dependOn(header_step);
+ const header_step = PrintStep.create(b, logo, std.io.getStdErr());
const verify_all = b.step("ziglings", "Check all ziglings");
- verify_all.dependOn(header_step);
+ verify_all.dependOn(&header_step.step);
b.default_step = verify_all;
var prev_chain_verify = verify_all;
@@ -574,7 +572,7 @@ pub fn build(b: *Build) !void {
chain_verify.dependOn(&verify_step.step);
const named_chain = b.step(b.fmt("{s}_start", .{key}), b.fmt("Check all solutions starting at {s}", .{ex.main_file}));
- named_chain.dependOn(header_step);
+ named_chain.dependOn(&header_step.step);
named_chain.dependOn(chain_verify);
prev_chain_verify.dependOn(chain_verify);