Skip to content

Commit e9e91b4

Browse files
authored
std.build: if using a RunStep, show the command run on verbose (#8571)
1 parent fe87813 commit e9e91b4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/std/build/run.zig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,13 @@ pub const RunStep = struct {
191191
child.stdout_behavior = stdIoActionToBehavior(self.stdout_action);
192192
child.stderr_behavior = stdIoActionToBehavior(self.stderr_action);
193193

194+
if (self.builder.verbose) {
195+
for (argv) |arg| {
196+
warn("{s} ", .{arg});
197+
}
198+
warn("\n", .{});
199+
}
200+
194201
child.spawn() catch |err| {
195202
warn("Unable to spawn {s}: {s}\n", .{ argv[0], @errorName(err) });
196203
return err;

0 commit comments

Comments
 (0)