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

This commit is contained in:
Andrew Kelley 2024-05-24 10:33:53 -07:00
parent 795c5791a9
commit a486392ee4

View file

@ -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),