bootstrap: pass crt-static for the compiler host as well

This commit is contained in:
Johannes Nixdorf
2018-04-29 11:21:47 +02:00
parent 5ecf29df05
commit ec2b861c2f
2 changed files with 13 additions and 0 deletions

View File

@@ -663,6 +663,10 @@ impl<'a> Builder<'a> {
cargo.env("RUSTC_CRT_STATIC", x.to_string());
}
if let Some(x) = self.crt_static(compiler.host) {
cargo.env("RUSTC_HOST_CRT_STATIC", x.to_string());
}
// Enable usage of unstable features
cargo.env("RUSTC_BOOTSTRAP", "1");
self.add_rust_test_threads(&mut cargo);