From 225073eff8799f9d9c3df7565a306ac06f001d45 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 2 Jun 2017 09:57:20 -0700 Subject: [PATCH] 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. --- src/bootstrap/bin/rustc.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/bootstrap/bin/rustc.rs b/src/bootstrap/bin/rustc.rs index e11f7bd089f6..d048645d4d53 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") {