about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-04-14 21:55:37 +0200
committerGitHub <noreply@github.com>2025-04-14 21:55:37 +0200
commit9b564dfc1df52e12876a6a00c4efcece058b688c (patch)
treebbf754ce84c1805a64ccc43517799b855d43027f
parentefca25fddcc7344280fa2b1e52dd31479f4a38f9 (diff)
parent86e2a07a13ce7fd6f68c71802db8f8c8eebe0ad0 (diff)
downloadrust-9b564dfc1df52e12876a6a00c4efcece058b688c.tar.gz
rust-9b564dfc1df52e12876a6a00c4efcece058b688c.zip
Rollup merge of #139757 - ognevny:opt-dist-hostllvm, r=Kobzol
opt-dist: use executable-extension for host llvm-profdata

because it's used for target llvm-profdata too

r? Kobzol
-rw-r--r--src/tools/opt-dist/src/training.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/opt-dist/src/training.rs b/src/tools/opt-dist/src/training.rs
index 30c79f95947..47159a43140 100644
--- a/src/tools/opt-dist/src/training.rs
+++ b/src/tools/opt-dist/src/training.rs
@@ -70,7 +70,9 @@ fn merge_llvm_profiles(
     profdata: LlvmProfdata,
 ) -> anyhow::Result<()> {
     let llvm_profdata = match profdata {
-        LlvmProfdata::Host => env.host_llvm_dir().join("bin/llvm-profdata"),
+        LlvmProfdata::Host => {
+            env.host_llvm_dir().join(format!("bin/llvm-profdata{}", executable_extension()))
+        }
         LlvmProfdata::Target => env
             .build_artifacts()
             .join("llvm")