authorgravatar for 58830309+g-w1@users.noreply.github.comg-w1 <58830309+g-w1@users.noreply.github.com> 2021-05-01 02:17:17-04:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2021-05-01 08:17:17+02:00
loge9e91b4ed058f4c4e3f3380ec06cb914becd04a8
treeabcd5797ff3d27a498a35fd1f8b3e332ec9a09df
parentfe8781357afc0fa763f6a60eb8959acd05f4dfa3
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

std.build: if using a RunStep, show the command run on verbose (#8571)


1 files changed, 7 insertions(+), 0 deletions(-)

lib/std/build/run.zig+7
...@@ -191,6 +191,13 @@ pub const RunStep = struct {...@@ -191,6 +191,13 @@ pub const RunStep = struct {
191 child.stdout_behavior = stdIoActionToBehavior(self.stdout_action);191 child.stdout_behavior = stdIoActionToBehavior(self.stdout_action);
192 child.stderr_behavior = stdIoActionToBehavior(self.stderr_action);192 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
194 child.spawn() catch |err| {201 child.spawn() catch |err| {
195 warn("Unable to spawn {s}: {s}\n", .{ argv[0], @errorName(err) });202 warn("Unable to spawn {s}: {s}\n", .{ argv[0], @errorName(err) });
196 return err;203 return err;