Skip to content

Commit e668f8c

Browse files
authored
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
2 parents 83cd669 + 86e2a07 commit e668f8c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: 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)