diff --git a/src/bootstrap/bin/rustc.rs b/src/bootstrap/bin/rustc.rs index e11f7bd089f6c..d048645d4d530 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") {