From 1bb161062bd877839c8bdb74e510e2f5031dfc5a Mon Sep 17 00:00:00 2001 From: Jieyou Xu Date: Sun, 23 Aug 2026 20:58:16 +0800 Subject: [PATCH] [Bootstrap] Use full exact CI `llvm-config` executable path Otherwise, this will cause `rustc_llvm` build script to consider the `llvm-config` executable missing, causing cargo build cache invalidation. --- src/bootstrap/src/core/build_steps/llvm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap/src/core/build_steps/llvm.rs b/src/bootstrap/src/core/build_steps/llvm.rs index 94c886649109f..e29e112b5ff39 100644 --- a/src/bootstrap/src/core/build_steps/llvm.rs +++ b/src/bootstrap/src/core/build_steps/llvm.rs @@ -285,7 +285,7 @@ fn try_download_ci_llvm(builder: &Builder<'_>, target: TargetSelection) -> Optio Some(DownloadedLlvm { output: LlvmOutput { - host_llvm_config: ci_llvm.join("bin").join("llvm-config"), + host_llvm_config: ci_llvm.join("bin").join(exe("llvm-config", builder.host_target)), link_shared, llvm_root_dir: ci_llvm, kind: LlvmKind::DownloadedFromCi,