Skip to content

Commit 86e2a07

Browse files
committed
opt-dist: use executable-extension for host llvm-profdata
so the merging step doesn't fail for `opt-dist local` on Windows
1 parent e1b06f7 commit 86e2a07

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tools/opt-dist/src/training.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ fn merge_llvm_profiles(
7070
profdata: LlvmProfdata,
7171
) -> anyhow::Result<()> {
7272
let llvm_profdata = match profdata {
73-
LlvmProfdata::Host => env.host_llvm_dir().join("bin/llvm-profdata"),
73+
LlvmProfdata::Host => {
74+
env.host_llvm_dir().join(format!("bin/llvm-profdata{}", executable_extension()))
75+
}
7476
LlvmProfdata::Target => env
7577
.build_artifacts()
7678
.join("llvm")

0 commit comments

Comments
 (0)