mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
std.build: if using a RunStep, show the command run on verbose (#8571)
This commit is contained in:
parent
fe8781357a
commit
e9e91b4ed0
@ -191,6 +191,13 @@ pub const RunStep = struct {
|
||||
child.stdout_behavior = stdIoActionToBehavior(self.stdout_action);
|
||||
child.stderr_behavior = stdIoActionToBehavior(self.stderr_action);
|
||||
|
||||
if (self.builder.verbose) {
|
||||
for (argv) |arg| {
|
||||
warn("{s} ", .{arg});
|
||||
}
|
||||
warn("\n", .{});
|
||||
}
|
||||
|
||||
child.spawn() catch |err| {
|
||||
warn("Unable to spawn {s}: {s}\n", .{ argv[0], @errorName(err) });
|
||||
return err;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user