Skip to content

Commit 9354de0

Browse files
committed
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`.
1 parent 4bd2b62 commit 9354de0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

build.zig

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -533,13 +533,11 @@ pub fn build(b: *Build) !void {
533533
\\
534534
\\
535535
;
536-
const header_step = b.step("info", logo);
537536

538-
const logo_step = PrintStep.create(b, logo, std.io.getStdErr());
539-
logo_step.step.dependOn(header_step);
537+
const header_step = PrintStep.create(b, logo, std.io.getStdErr());
540538

541539
const verify_all = b.step("ziglings", "Check all ziglings");
542-
verify_all.dependOn(header_step);
540+
verify_all.dependOn(&header_step.step);
543541
b.default_step = verify_all;
544542

545543
var prev_chain_verify = verify_all;
@@ -574,7 +572,7 @@ pub fn build(b: *Build) !void {
574572
chain_verify.dependOn(&verify_step.step);
575573

576574
const named_chain = b.step(b.fmt("{s}_start", .{key}), b.fmt("Check all solutions starting at {s}", .{ex.main_file}));
577-
named_chain.dependOn(header_step);
575+
named_chain.dependOn(&header_step.step);
578576
named_chain.dependOn(chain_verify);
579577

580578
prev_chain_verify.dependOn(chain_verify);

0 commit comments

Comments
 (0)