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 bcab14af3e
commit 55dab7c820
2 changed files with 13 additions and 0 deletions

View file

@ -268,6 +268,15 @@ fn main() {
if let Ok(host_linker) = env::var("RUSTC_HOST_LINKER") {
cmd.arg(format!("-Clinker={}", host_linker));
}
if let Ok(s) = env::var("RUSTC_HOST_CRT_STATIC") {
if s == "true" {
cmd.arg("-C").arg("target-feature=+crt-static");
}
if s == "false" {
cmd.arg("-C").arg("target-feature=-crt-static");
}
}
}
if env::var_os("RUSTC_PARALLEL_QUERIES").is_some() {