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:
许杰友 Jieyou Xu (Joe) 2024-10-15 13:28:04 +08:00
parent 7ed1a51b25
commit 4b28e52f32
3 changed files with 1226 additions and 1211 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -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()],
},]);
}