Skip to content

Commit 06f2412

Browse files
committed
add prints
1 parent 96efb8a commit 06f2412

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

src/bootstrap/src/bin/main.rs

+9
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,17 @@ fn main() {
7979
println!("{suggestion}");
8080
}
8181

82+
println!("suggest setup completed");
83+
8284
let pre_commit = config.src.join(".git").join("hooks").join("pre-commit");
8385
let dump_bootstrap_shims = config.dump_bootstrap_shims;
8486
let out_dir = config.out.clone();
8587

88+
println!("building");
8689
Build::new(config).build();
90+
println!("build completed");
8791

92+
println!("checking setup");
8893
if suggest_setup {
8994
println!("WARNING: you have not made a `config.toml`");
9095
println!(
@@ -94,6 +99,7 @@ fn main() {
9499
} else if let Some(suggestion) = &changelog_suggestion {
95100
println!("{suggestion}");
96101
}
102+
println!("checking setup completed");
97103

98104
// Give a warning if the pre-commit script is in pre-commit and not pre-push.
99105
// HACK: Since the commit script uses hard links, we can't actually tell if it was installed by x.py setup or not.
@@ -107,6 +113,7 @@ fn main() {
107113
Consider moving it to .git/hooks/pre-push instead, which runs less often."
108114
);
109115
}
116+
println!("pre-commit check completed");
110117

111118
if suggest_setup || changelog_suggestion.is_some() {
112119
println!("NOTE: this message was printed twice to make it more likely to be seen");
@@ -134,6 +141,8 @@ fn main() {
134141
t!(file.write_all(lines.join("\n").as_bytes()));
135142
}
136143
}
144+
145+
println!("dump bootstrap shims completed");
137146
}
138147

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

src/bootstrap/src/lib.rs

+10
Original file line numberDiff line numberDiff line change
@@ -548,9 +548,13 @@ impl Build {
548548
crate::utils::job::setup(self);
549549
}
550550

551+
println!("build setup completed");
552+
551553
// Download rustfmt early so that it can be used in rust-analyzer configs.
552554
let _ = &builder::Builder::new(self).initial_rustfmt();
553555

556+
println!("rustfmt download completed");
557+
554558
// hardcoded subcommands
555559
match &self.config.cmd {
556560
Subcommand::Format { check, all } => {
@@ -570,6 +574,8 @@ impl Build {
570574
_ => (),
571575
}
572576

577+
println!("handled subcommand");
578+
573579
if !self.config.dry_run() {
574580
{
575581
// We first do a dry-run. This is a sanity-check to ensure that
@@ -586,6 +592,8 @@ impl Build {
586592
builder.execute_cli();
587593
}
588594

595+
println!("execute cli completed");
596+
589597
// Check for postponed failures from `test --no-fail-fast`.
590598
let failures = self.delayed_failures.borrow();
591599
if failures.len() > 0 {
@@ -596,6 +604,8 @@ impl Build {
596604
exit!(1);
597605
}
598606

607+
println!("postponed failures check completed");
608+
599609
#[cfg(feature = "build-metrics")]
600610
self.metrics.persist(self);
601611
}

0 commit comments

Comments
 (0)