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
This commit is contained in:
Matthias Krüger 2025-04-14 21:55:37 +02:00 committed by GitHub
commit 9b564dfc1d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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")