about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-08-13 21:11:15 +0200
committerGitHub <noreply@github.com>2024-08-13 21:11:15 +0200
commitc013e2c3df97b7ebb5990fc02063168902ec4815 (patch)
treea6ee494d5be3a9e37ec0f43a6f7bbde7f4127077
parent5ef33d4c61684499a17791220b9b73b2117092b5 (diff)
parent87a4c325d2767e5e0baf0c2a4d0cc12bb78ca356 (diff)
downloadrust-c013e2c3df97b7ebb5990fc02063168902ec4815.tar.gz
rust-c013e2c3df97b7ebb5990fc02063168902ec4815.zip
Rollup merge of #129056 - Kobzol:fix-target-triple, r=onur-ozkan
Fix one usage of target triple in bootstrap

This bug was introduced in https://github.com/rust-lang/rust/pull/128983. In this one case, the `TargetSelection` was also used as `Display` (not just as `Path`), which I did not notice in the original PR. If the target contained a custom file, it would be included in its `Display` formatting, even though only the triple should be used.

Found [here](https://github.com/rust-lang/rust/pull/128983#issuecomment-2286601889).

r? `@onur-ozkan`
-rw-r--r--src/bootstrap/src/core/download.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/download.rs b/src/bootstrap/src/core/download.rs
index 8131666fcb2..fd85650bc56 100644
--- a/src/bootstrap/src/core/download.rs
+++ b/src/bootstrap/src/core/download.rs
@@ -519,7 +519,7 @@ impl Config {
         extra_components: &[&str],
         download_component: fn(&Config, String, &str, &str),
     ) {
-        let host = self.build;
+        let host = self.build.triple;
         let bin_root = self.out.join(host).join(sysroot);
         let rustc_stamp = bin_root.join(".rustc-stamp");