bootstrap: use RUSTC_BOOTSTRAP to vendor sources

This commit is contained in:
Michael Howell 2023-05-15 22:28:08 -07:00
parent 6a358960da
commit 2e52f4deb0

View File

@ -1013,6 +1013,9 @@ impl Step for PlainSourceTarball {
.arg(builder.src.join("./compiler/rustc_codegen_cranelift/Cargo.toml"))
.arg("--sync")
.arg(builder.src.join("./src/bootstrap/Cargo.toml"))
// Will read the libstd Cargo.toml
// which uses the unstable `public-dependency` feature.
.env("RUSTC_BOOTSTRAP", "1")
.current_dir(&plain_dst_src);
let config = if !builder.config.dry_run() {