bootstrap: extract builder cargo to its own module
I found builder.rs to be a massive file which made it hard to digest. To make `RUSTFLAGS` usage hardening easier later, I extracted the cargo part in `builder.rs` into its own module.
This commit is contained in:
parent
7ed1a51b25
commit
4b28e52f32
3 changed files with 1226 additions and 1211 deletions
File diff suppressed because it is too large
Load diff
1217
src/bootstrap/src/core/builder/cargo.rs
Normal file
1217
src/bootstrap/src/core/builder/cargo.rs
Normal file
File diff suppressed because it is too large
Load diff
|
@ -637,7 +637,7 @@ mod dist {
|
|||
assert_eq!(first(builder.cache.all::<test::Crate>()), &[test::Crate {
|
||||
compiler: Compiler { host, stage: 0 },
|
||||
target: host,
|
||||
mode: Mode::Std,
|
||||
mode: crate::Mode::Std,
|
||||
crates: vec!["std".to_owned()],
|
||||
},]);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue