mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-17 05:36:23 +00:00
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
@ -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…
x
Reference in New Issue
Block a user