Skip to content

Commit 0677387

Browse files
committed
rustbuild: Document what steps are
1 parent 5abcc78 commit 0677387

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/bootstrap/build/step.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,23 @@ pub struct Step<'a> {
2121
macro_rules! targets {
2222
($m:ident) => {
2323
$m! {
24+
// Step representing building the stageN compiler. This is just the
25+
// compiler executable itself, not any of the support libraries
2426
(rustc, Rustc { stage: u32 }),
27+
28+
// Steps for the two main cargo builds, one for the standard library
29+
// and one for the compiler itself. These are parameterized over the
30+
// stage output they're going to be placed in along with the
31+
// compiler which is producing the copy of libstd or librustc
2532
(libstd, Libstd { stage: u32, compiler: Compiler<'a> }),
2633
(librustc, Librustc { stage: u32, compiler: Compiler<'a> }),
34+
35+
// Steps for long-running native builds. Ideally these wouldn't
36+
// actually exist and would be part of build scripts, but for now
37+
// these are here.
38+
//
39+
// There aren't really any parameters to this, but empty structs
40+
// with braces are unstable so we just pick something that works.
2741
(llvm, Llvm { _dummy: () }),
2842
(compiler_rt, CompilerRt { _dummy: () }),
2943
}

0 commit comments

Comments
 (0)