about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-06-02 09:57:20 -0700
committerAlex Crichton <alex@alexcrichton.com>2017-06-02 09:57:20 -0700
commit225073eff8799f9d9c3df7565a306ac06f001d45 (patch)
tree2d060684e5c3ecdab553cc9a88994f8d3447bae0
parent4ed2edaafe82fb8d44e81e00ca3e4f7659855ba2 (diff)
downloadrust-225073eff8799f9d9c3df7565a306ac06f001d45.tar.gz
rust-225073eff8799f9d9c3df7565a306ac06f001d45.zip
rustbuild: Remove RUSTFLAGS logic in rustc shim
This was added in #38072 but I can't recall why and AFAIK Cargo already handles
this. This was discovered through #42146 where passing duplicate flags was
causing problems.
-rw-r--r--src/bootstrap/bin/rustc.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/bootstrap/bin/rustc.rs b/src/bootstrap/bin/rustc.rs
index e11f7bd089f..d048645d4d5 100644
--- a/src/bootstrap/bin/rustc.rs
+++ b/src/bootstrap/bin/rustc.rs
@@ -232,12 +232,6 @@ fn main() {
             if let Some(rpath) = rpath {
                 cmd.arg("-C").arg(format!("link-args={}", rpath));
             }
-
-            if let Ok(s) = env::var("RUSTFLAGS") {
-                for flag in s.split_whitespace() {
-                    cmd.arg(flag);
-                }
-            }
         }
 
         if target.contains("pc-windows-msvc") {