Skip to content

Commit

Permalink
Revert "bootstrap: pass crt-static for the compiler host as well"
Browse files Browse the repository at this point in the history
This reverts commit ec2b861.
  • Loading branch information
alexcrichton committed May 17, 2018
1 parent 250bff1 commit 4ac82b4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
9 changes: 0 additions & 9 deletions src/bootstrap/bin/rustc.rs
Expand Up @@ -268,15 +268,6 @@ 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() {
Expand Down
4 changes: 0 additions & 4 deletions src/bootstrap/builder.rs
Expand Up @@ -698,10 +698,6 @@ 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);
Expand Down

0 comments on commit 4ac82b4

Please sign in to comment.