Skip to content

Commit 75b454b

Browse files
committed
expose report summary via build
1 parent 13c31d4 commit 75b454b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/bootstrap/src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use std::collections::{BTreeSet, HashMap, HashSet};
2222
use std::fmt::Display;
2323
use std::path::{Path, PathBuf};
2424
use std::sync::OnceLock;
25-
use std::time::SystemTime;
25+
use std::time::{Instant, SystemTime};
2626
use std::{env, fs, io, str};
2727

2828
use build_helper::ci::gha;
@@ -1928,6 +1928,10 @@ to download LLVM rather than building it.
19281928
pub fn exec_ctx(&self) -> &ExecutionContext {
19291929
&self.config.exec_ctx
19301930
}
1931+
1932+
pub fn report_summary(&self, start_time: Instant) {
1933+
self.config.exec_ctx.profiler().report_summary(start_time);
1934+
}
19311935
}
19321936

19331937
impl AsRef<ExecutionContext> for Build {

0 commit comments

Comments
 (0)