mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Improve bootstrap comments
Rewrote a comment I found hard to understand, added some more.
This commit is contained in:
parent
a8cfc83801
commit
a0721036b6
@ -825,6 +825,7 @@ fn cp_rustc_component_to_ci_sysroot(
|
||||
#[derive(Debug, PartialOrd, Ord, Clone, PartialEq, Eq, Hash)]
|
||||
pub struct Rustc {
|
||||
pub target: TargetSelection,
|
||||
/// The **previous** compiler used to compile this compiler.
|
||||
pub compiler: Compiler,
|
||||
/// Whether to build a subset of crates, rather than the whole compiler.
|
||||
///
|
||||
@ -1518,12 +1519,9 @@ impl Step for Sysroot {
|
||||
run.never()
|
||||
}
|
||||
|
||||
/// Returns the sysroot for the `compiler` specified that *this build system
|
||||
/// generates*.
|
||||
///
|
||||
/// That is, the sysroot for the stage0 compiler is not what the compiler
|
||||
/// thinks it is by default, but it's the same as the default for stages
|
||||
/// 1-3.
|
||||
/// Returns the sysroot that `compiler` is supposed to use.
|
||||
/// For the stage0 compiler, this is stage0-sysroot (because of the initial std build).
|
||||
/// For all other stages, it's the same stage directory that the compiler lives in.
|
||||
fn run(self, builder: &Builder<'_>) -> PathBuf {
|
||||
let compiler = self.compiler;
|
||||
let host_dir = builder.out.join(compiler.host.triple);
|
||||
|
@ -274,6 +274,7 @@ impl Step for Llvm {
|
||||
target.to_string()
|
||||
};
|
||||
|
||||
// If LLVM has already been built or been downloaded through download-ci-llvm, we avoid building it again.
|
||||
let Meta { stamp, res, out_dir, root } = match prebuilt_llvm_config(builder, target) {
|
||||
Ok(p) => return p,
|
||||
Err(m) => m,
|
||||
|
Loading…
Reference in New Issue
Block a user