Skip to content
Permalink
Browse files

No need to remove target-specific RUSTFLAGS

Turns out Cargo favors RUSTFLAGS!
  • Loading branch information...
alexcrichton committed Sep 11, 2019
1 parent 674a076 commit afd1bc373884444f924ee857cbe38e9cefa04c46
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/bootstrap/builder.rs
@@ -1344,11 +1344,9 @@ impl Rustflags {
ret.env("RUSTFLAGS");

// ... and also handle target-specific env RUSTFLAGS if they're
// configured. If this is configured we also remove it from the
// environment because Cargo will prefer it over RUSTFLAGS.
// configured.
let target_specific = format!("CARGO_TARGET_{}_RUSTFLAGS", crate::envify(target));
ret.env(&target_specific);
cmd.env_remove(&target_specific);

ret
}

0 comments on commit afd1bc3

Please sign in to comment.
You can’t perform that action at this time.