about summary refs log tree commit diff
diff options
context:
space:
mode:
authoronur-ozkan <work@onurozkan.dev>2024-03-22 19:00:48 +0300
committeronur-ozkan <work@onurozkan.dev>2024-04-16 19:22:59 +0300
commita01897345cead40cd3c349529a67e796a4395a09 (patch)
tree1185619dfd694fe342cdf7c6b0ba7a1ec9a1328d
parentbbacfe0cb64c4541097ed21f3cb0d3511bf0028f (diff)
downloadrust-a01897345cead40cd3c349529a67e796a4395a09.tar.gz
rust-a01897345cead40cd3c349529a67e796a4395a09.zip
fix sysroot bug and update step message format
Signed-off-by: onur-ozkan <work@onurozkan.dev>
-rw-r--r--src/bootstrap/src/core/build_steps/clippy.rs25
1 files changed, 6 insertions, 19 deletions
diff --git a/src/bootstrap/src/core/build_steps/clippy.rs b/src/bootstrap/src/core/build_steps/clippy.rs
index 7374c2b1cf2..15d676bea20 100644
--- a/src/bootstrap/src/core/build_steps/clippy.rs
+++ b/src/bootstrap/src/core/build_steps/clippy.rs
@@ -141,10 +141,8 @@ impl Step for Std {
             cargo.arg("-p").arg(krate);
         }
 
-        let _guard = builder.msg_clippy(
-            format_args!("library artifacts{}", crate_description(&self.crates)),
-            target,
-        );
+        let _guard =
+            builder.msg_clippy(format_args!("library{}", crate_description(&self.crates)), target);
 
         run_cargo(
             builder,
@@ -187,17 +185,8 @@ impl Step for Rustc {
         let compiler = builder.compiler(builder.top_stage, builder.config.build);
         let target = self.target;
 
-        if compiler.stage != 0 {
-            // If we're not in stage 0, then we won't have a std from the beta
-            // compiler around. That means we need to make sure there's one in
-            // the sysroot for the compiler to find. Otherwise, we're going to
-            // fail when building crates that need to generate code (e.g., build
-            // scripts and their dependencies).
-            builder.ensure(compile::Std::new(compiler, compiler.host));
-            builder.ensure(compile::Std::new(compiler, target));
-        } else {
-            builder.ensure(check::Std::new(target));
-        }
+        builder.ensure(compile::Std::new(compiler, compiler.host));
+        builder.ensure(compile::Std::new(compiler, target));
 
         let mut cargo = builder::Cargo::new(
             builder,
@@ -217,10 +206,8 @@ impl Step for Rustc {
             cargo.arg("-p").arg(krate);
         }
 
-        let _guard = builder.msg_clippy(
-            format_args!("compiler artifacts{}", crate_description(&self.crates)),
-            target,
-        );
+        let _guard =
+            builder.msg_clippy(format_args!("compiler{}", crate_description(&self.crates)), target);
 
         run_cargo(
             builder,