mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
std.Build: fix '--webui' crash
Using '--webui' without '--time-report' when there are Run steps in the graph was regressed by https://github.com/ziglang/zig/pull/25029.
This commit is contained in:
parent
9215121688
commit
0dde70ef76
@ -1587,12 +1587,16 @@ fn spawnChildAndCollect(
|
||||
run.step.test_results = res.test_results;
|
||||
if (res.test_metadata) |tm| {
|
||||
run.cached_test_metadata = tm.toCachedTestMetadata();
|
||||
if (options.web_server) |ws| ws.updateTimeReportRunTest(
|
||||
if (options.web_server) |ws| {
|
||||
if (b.graph.time_report) {
|
||||
ws.updateTimeReportRunTest(
|
||||
run,
|
||||
&run.cached_test_metadata.?,
|
||||
tm.ns_per_test,
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
} else {
|
||||
const inherit = child.stdout_behavior == .Inherit or child.stderr_behavior == .Inherit;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user