Skip to content

Commit 424e09b

Browse files
committed
generate profile report on all bootstrap command invocation
1 parent eb7564d commit 424e09b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,4 @@ flake.lock
102102
/default.nix
103103

104104
# Before adding new lines, see the comment at the top.
105+
*.txt

src/bootstrap/src/bin/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ fn main() {
9696
let out_dir = config.out.clone();
9797

9898
debug!("creating new build based on config");
99-
Build::new(config).build();
99+
let mut build = Build::new(config);
100+
build.build();
100101

101102
if suggest_setup {
102103
println!("WARNING: you have not made a `bootstrap.toml`");
@@ -147,6 +148,8 @@ fn main() {
147148
t!(file.write_all(lines.join("\n").as_bytes()));
148149
}
149150
}
151+
152+
build.report_summary();
150153
}
151154

152155
fn check_version(config: &Config) -> Option<String> {

0 commit comments

Comments
 (0)