opt-dist: use executable-extension for host llvm-profdata

so the merging step doesn't fail for `opt-dist local` on Windows
This commit is contained in:
Maksim Bondarenkov 2025-04-12 10:52:46 +03:00
parent e1b06f7730
commit 86e2a07a13

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