zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit a486392ee4bfe6f2577aafa9c1d50a176b0de0ea (tree)
parent 795c5791a962e4d4b46fa9fd0470fe8162d65521
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Fri, 24 May 2024 10:33:53 -0700

std.Build.Step: don't create an empty progress node

Diffstat:
Mlib/std/Build/Step.zig | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/lib/std/Build/Step.zig b/lib/std/Build/Step.zig @@ -313,16 +313,13 @@ pub fn evalZigProcess( try handleChildProcUnsupported(s, null, argv); try handleVerbose(s.owner, null, argv); - const sub_prog_node = prog_node.start("", 0); - defer sub_prog_node.end(); - var child = std.process.Child.init(argv, arena); child.env_map = &b.graph.env_map; child.stdin_behavior = .Pipe; child.stdout_behavior = .Pipe; child.stderr_behavior = .Pipe; child.request_resource_usage_statistics = true; - child.progress_node = sub_prog_node; + child.progress_node = prog_node; child.spawn() catch |err| return s.fail("unable to spawn {s}: {s}", .{ argv[0], @errorName(err),