expose report summary via build

This commit is contained in:
bit-aloo 2025-07-10 18:18:49 +05:30
parent 13c31d445e
commit 75b454b320
No known key found for this signature in database

View file

@ -22,7 +22,7 @@ use std::collections::{BTreeSet, HashMap, HashSet};
use std::fmt::Display;
use std::path::{Path, PathBuf};
use std::sync::OnceLock;
use std::time::SystemTime;
use std::time::{Instant, SystemTime};
use std::{env, fs, io, str};
use build_helper::ci::gha;
@ -1928,6 +1928,10 @@ to download LLVM rather than building it.
pub fn exec_ctx(&self) -> &ExecutionContext {
&self.config.exec_ctx
}
pub fn report_summary(&self, start_time: Instant) {
self.config.exec_ctx.profiler().report_summary(start_time);
}
}
impl AsRef<ExecutionContext> for Build {