Skip to content

Commit 225073e

Browse files
committed
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.
1 parent 4ed2eda commit 225073e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/bootstrap/bin/rustc.rs

-6
Original file line numberDiff line numberDiff line change
@@ -232,12 +232,6 @@ fn main() {
232232
if let Some(rpath) = rpath {
233233
cmd.arg("-C").arg(format!("link-args={}", rpath));
234234
}
235-
236-
if let Ok(s) = env::var("RUSTFLAGS") {
237-
for flag in s.split_whitespace() {
238-
cmd.arg(flag);
239-
}
240-
}
241235
}
242236

243237
if target.contains("pc-windows-msvc") {

0 commit comments

Comments
 (0)