bootstrap: enable Cargo public-dependency feature for libstd
This commit is contained in:
parent
d300bffa4f
commit
64025bb168
4 changed files with 13 additions and 4 deletions
|
|
@ -74,6 +74,7 @@ fn workspace_members(build: &Build) -> impl Iterator<Item = Package> {
|
|||
let collect_metadata = |manifest_path| {
|
||||
let mut cargo = Command::new(&build.initial_cargo);
|
||||
cargo
|
||||
.env("RUSTC_BOOTSTRAP", "1")
|
||||
.arg("metadata")
|
||||
.arg("--format-version")
|
||||
.arg("1")
|
||||
|
|
|
|||
|
|
@ -16,6 +16,10 @@ use std::sync::atomic::{AtomicBool, Ordering};
|
|||
use std::thread::{self, scope, ScopedJoinHandle};
|
||||
|
||||
fn main() {
|
||||
// Allow using unstable cargo features in the standard library.
|
||||
// `setenv` might not be thread safe, so run it before using multiple threads.
|
||||
env::set_var("RUSTC_BOOTSTRAP", "1");
|
||||
|
||||
let root_path: PathBuf = env::args_os().nth(1).expect("need path to root of repo").into();
|
||||
let cargo: PathBuf = env::args_os().nth(2).expect("need path to cargo").into();
|
||||
let output_directory: PathBuf =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue