Skip to content

Commit 4ac82b4

Browse files
committed
Revert "bootstrap: pass crt-static for the compiler host as well"
This reverts commit ec2b861.
1 parent 250bff1 commit 4ac82b4

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

src/bootstrap/bin/rustc.rs

-9
Original file line numberDiff line numberDiff line change
@@ -268,15 +268,6 @@ fn main() {
268268
if let Ok(host_linker) = env::var("RUSTC_HOST_LINKER") {
269269
cmd.arg(format!("-Clinker={}", host_linker));
270270
}
271-
272-
if let Ok(s) = env::var("RUSTC_HOST_CRT_STATIC") {
273-
if s == "true" {
274-
cmd.arg("-C").arg("target-feature=+crt-static");
275-
}
276-
if s == "false" {
277-
cmd.arg("-C").arg("target-feature=-crt-static");
278-
}
279-
}
280271
}
281272

282273
if env::var_os("RUSTC_PARALLEL_QUERIES").is_some() {

src/bootstrap/builder.rs

-4
Original file line numberDiff line numberDiff line change
@@ -698,10 +698,6 @@ impl<'a> Builder<'a> {
698698
cargo.env("RUSTC_CRT_STATIC", x.to_string());
699699
}
700700

701-
if let Some(x) = self.crt_static(compiler.host) {
702-
cargo.env("RUSTC_HOST_CRT_STATIC", x.to_string());
703-
}
704-
705701
// Enable usage of unstable features
706702
cargo.env("RUSTC_BOOTSTRAP", "1");
707703
self.add_rust_test_threads(&mut cargo);

0 commit comments

Comments
 (0)