Skip to content

Commit fa5eb54

Browse files
committed
rustbuild: Print out all build steps when --verbose
1 parent 4c04e36 commit fa5eb54

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/bootstrap/lib.rs

+8-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,14 @@ impl Build {
243243
// Almost all of these are simple one-liners that shell out to the
244244
// corresponding functionality in the extra modules, where more
245245
// documentation can be found.
246-
for target in step::all(self) {
246+
let steps = step::all(self);
247+
248+
self.verbose("bootstrap build plan:");
249+
for step in &steps {
250+
self.verbose(&format!("{:?}", step));
251+
}
252+
253+
for target in steps {
247254
let doc_out = self.out.join(&target.target).join("doc");
248255
match target.src {
249256
Llvm { _dummy } => {

src/bootstrap/step.rs

+3
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ targets!(define_source);
171171
/// into a topologically sorted list which when executed left-to-right will
172172
/// correctly sequence the entire build.
173173
pub fn all(build: &Build) -> Vec<Step> {
174+
build.verbose("inferred build steps:");
175+
174176
let mut ret = Vec::new();
175177
let mut all = HashSet::new();
176178
for target in top_level(build) {
@@ -184,6 +186,7 @@ pub fn all(build: &Build) -> Vec<Step> {
184186
set: &mut HashSet<Step<'a>>) {
185187
if set.insert(target.clone()) {
186188
for dep in target.deps(build) {
189+
build.verbose(&format!("{:?}\n -> {:?}", target, dep));
187190
fill(build, &dep, ret, set);
188191
}
189192
ret.push(target.clone());

0 commit comments

Comments
 (0)