about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbit-aloo <sshourya17@gmail.com>2025-07-10 18:18:49 +0530
committerbit-aloo <sshourya17@gmail.com>2025-07-10 18:25:43 +0530
commit75b454b3206d6213f4015ecc77b40fd48eadd6cf (patch)
tree9d1ef56d66187c0c1e8001aa216c0c18b1f22017
parent13c31d445e3ce7b5749dbdb88d18e465f9a7e027 (diff)
downloadrust-75b454b3206d6213f4015ecc77b40fd48eadd6cf.tar.gz
rust-75b454b3206d6213f4015ecc77b40fd48eadd6cf.zip
expose report summary via build
-rw-r--r--src/bootstrap/src/lib.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bootstrap/src/lib.rs b/src/bootstrap/src/lib.rs
index ef5c28272b8..d9a4da8f3cc 100644
--- a/src/bootstrap/src/lib.rs
+++ b/src/bootstrap/src/lib.rs
@@ -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 {