]> git.lizzy.rs Git - rust.git/commitdiff
Revert "bootstrap: pass crt-static for the compiler host as well"
authorAlex Crichton <alex@alexcrichton.com>
Sun, 13 May 2018 14:44:46 +0000 (07:44 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 17 May 2018 17:37:22 +0000 (10:37 -0700)
This reverts commit ec2b861c2f8013e10ab1f6e01c9aed9ad1daaefe.

src/bootstrap/bin/rustc.rs
src/bootstrap/builder.rs

index 76d0e6e28aeda75e779ea703e8563dc01e2b4004..3f97accaa4d84088ecbd8524e359d653dda4aa6c 100644 (file)
@@ -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() {
index cc1e66332a3f38acaca8f26f35de85958fbc508c..c482adbb390790a6ef3a35507f5739c6ac626330 100644 (file)
@@ -698,10 +698,6 @@ pub fn cargo(&self,
             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);