diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index 3904c718a254443299a5b4a3634809996a7b6ee4..52f2c62924c6ac350f30053a70bda80811a05e8e 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -1288,7 +1288,7 @@ pub fn cargo( // requirement, but the `-L` library path is not propagated across // separate Cargo projects. We can add LLVM's library path to the // platform-specific environment variable as a workaround. - if mode == Mode::ToolRustc { + if mode == Mode::ToolRustc || mode == Mode::Codegen { if let Some(llvm_config) = self.llvm_config(target) { let llvm_libdir = output(Command::new(&llvm_config).arg("--libdir")); add_link_lib_path(vec![llvm_libdir.trim().into()], &mut cargo); diff --git a/src/bootstrap/compile.rs b/src/bootstrap/compile.rs index 78c9a25262243bca4be37e44f3aa990d26d5696f..d25989954783ae05ce240f9ffcebf595622e71c7 100644 --- a/src/bootstrap/compile.rs +++ b/src/bootstrap/compile.rs @@ -806,6 +806,10 @@ fn run(self, builder: &Builder<'_>) { let tmp_stamp = out_dir.join(".tmp.stamp"); + builder.info(&format!( + "Building stage{} codegen backend {} ({} -> {})", + compiler.stage, backend, &compiler.host, target + )); let files = run_cargo(builder, cargo, vec![], &tmp_stamp, vec![], false); if builder.config.dry_run { return;