about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-01-09 10:24:27 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-01-09 10:24:27 +0000
commit916a0b322536821ea210905a7dd8294d10d0271b (patch)
tree5b66b9af286e3daba233f448302469d1a9b1f35e
parent0335dc131fb35f710668f6e079d39eebbc31edac (diff)
downloadrust-916a0b322536821ea210905a7dd8294d10d0271b.tar.gz
rust-916a0b322536821ea210905a7dd8294d10d0271b.zip
Minor cleanup
-rw-r--r--build_system/build_sysroot.rs21
1 files changed, 8 insertions, 13 deletions
diff --git a/build_system/build_sysroot.rs b/build_system/build_sysroot.rs
index e47e9829916..33759946909 100644
--- a/build_system/build_sysroot.rs
+++ b/build_system/build_sysroot.rs
@@ -102,19 +102,14 @@ pub(crate) fn build_sysroot(
         .install_into_sysroot(dist_dir);
     }
 
-    let mut target_compiler = {
-        let rustc_clif = dist_dir.join(wrapper_base_name.replace("____", "rustc-clif"));
-        let rustdoc_clif = dist_dir.join(wrapper_base_name.replace("____", "rustdoc-clif"));
-
-        Compiler {
-            cargo: bootstrap_host_compiler.cargo.clone(),
-            rustc: rustc_clif.clone(),
-            rustdoc: rustdoc_clif.clone(),
-            rustflags: vec![],
-            rustdocflags: vec![],
-            triple: target_triple,
-            runner: vec![],
-        }
+    let mut target_compiler = Compiler {
+        cargo: bootstrap_host_compiler.cargo.clone(),
+        rustc: dist_dir.join(wrapper_base_name.replace("____", "rustc-clif")),
+        rustdoc: dist_dir.join(wrapper_base_name.replace("____", "rustdoc-clif")),
+        rustflags: vec![],
+        rustdocflags: vec![],
+        triple: target_triple,
+        runner: vec![],
     };
     if !is_native {
         target_compiler.set_cross_linker_and_runner();