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,11 +1587,15 @@ fn spawnChildAndCollect(
|
|||||||
run.step.test_results = res.test_results;
|
run.step.test_results = res.test_results;
|
||||||
if (res.test_metadata) |tm| {
|
if (res.test_metadata) |tm| {
|
||||||
run.cached_test_metadata = tm.toCachedTestMetadata();
|
run.cached_test_metadata = tm.toCachedTestMetadata();
|
||||||
if (options.web_server) |ws| ws.updateTimeReportRunTest(
|
if (options.web_server) |ws| {
|
||||||
run,
|
if (b.graph.time_report) {
|
||||||
&run.cached_test_metadata.?,
|
ws.updateTimeReportRunTest(
|
||||||
tm.ns_per_test,
|
run,
|
||||||
);
|
&run.cached_test_metadata.?,
|
||||||
|
tm.ns_per_test,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user