commit db15df5daa3e5e93ff1085e7a43999f0bb61938b (tree)
parent 65922a2d4319ca2e9f3e67650d018e269d018a77
Author: Matthew Lugg <mlugg@mlugg.co.uk>
Date: Sat, 6 Dec 2025 14:22:47 +0000
build_runner: don't dim the tree line of reused step
This was presumably unintentional, as the old behavior looked quite odd
when you noticed it. All of the line-drawing characters ought to be the
same color; only the step name/status is dimmed when a step is "reused"
(i.e. appears multiple times in the tree).
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/compiler/build_runner.zig b/lib/compiler/build_runner.zig
@@ -1186,7 +1186,6 @@ fn printTreeStep(
if (skip) return;
try printPrefix(parent_node, stderr, ttyconf);
- if (!first) try ttyconf.setColor(stderr, .dim);
if (parent_node.parent != null) {
if (parent_node.last) {
try printChildNodePrefix(stderr, ttyconf);
@@ -1198,6 +1197,8 @@ fn printTreeStep(
}
}
+ if (!first) try ttyconf.setColor(stderr, .dim);
+
// dep_prefix omitted here because it is redundant with the tree.
try stderr.writeAll(s.name);