authorgravatar for bratishkaerik@landless-city.netEric Joldasov <bratishkaerik@landless-city.net> 2024-05-09 00:12:54+05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-08-23 21:45:32-07:00
log03c297eea63b403371428bdf2bbf91fcdca8a071
tree45a6554ab3ae8f307cd2e4c771bb81049aa45ff0
parent9848318725345e4516d68e4f4537f602078d59ad

std.Build: call `handleVerbose2` in `runAllowFail`

Ensures that all runned command are visible when using `--verbose` flag, for example `pkg-config` from Step.Compile or `git describe` from build.zig. Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net>

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

lib/std/Build.zig+1
...@@ -1808,6 +1808,7 @@ pub fn runAllowFail(...@@ -1808,6 +1808,7 @@ pub fn runAllowFail(
1808 child.stderr_behavior = stderr_behavior;1808 child.stderr_behavior = stderr_behavior;
1809 child.env_map = &b.graph.env_map;1809 child.env_map = &b.graph.env_map;
18101810
1811 try Step.handleVerbose2(self, null, child.env_map, argv);
1811 try child.spawn();1812 try child.spawn();
18121813
1813 const stdout = child.stdout.?.reader().readAllAlloc(b.allocator, max_output_size) catch {1814 const stdout = child.stdout.?.reader().readAllAlloc(b.allocator, max_output_size) catch {