Skip to content

Commit

Permalink
rustbuild: Remove RUSTFLAGS logic in rustc shim
Browse files Browse the repository at this point in the history
This was added in rust-lang#38072 but I can't recall why and AFAIK Cargo already handles
this. This was discovered through rust-lang#42146 where passing duplicate flags was
causing problems.
  • Loading branch information
alexcrichton committed Jun 2, 2017
1 parent 4ed2eda commit 225073e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/bootstrap/bin/rustc.rs
Expand Up @@ -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") {
Expand Down

0 comments on commit 225073e

Please sign in to comment.