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:
parent
e1b06f7730
commit
86e2a07a13
1 changed files with 3 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue