diff options
| author | Maksim Bondarenkov <maksapple2306@gmail.com> | 2025-04-12 10:52:46 +0300 |
|---|---|---|
| committer | Maksim Bondarenkov <maksapple2306@gmail.com> | 2025-04-12 10:52:46 +0300 |
| commit | 86e2a07a13ce7fd6f68c71802db8f8c8eebe0ad0 (patch) | |
| tree | 6b756b0d7339b3ce40ff41c26d3f057ae85f978f | |
| parent | e1b06f773063140263558b858cb6e4c99755a763 (diff) | |
| download | rust-86e2a07a13ce7fd6f68c71802db8f8c8eebe0ad0.tar.gz rust-86e2a07a13ce7fd6f68c71802db8f8c8eebe0ad0.zip | |
opt-dist: use executable-extension for host llvm-profdata
so the merging step doesn't fail for `opt-dist local` on Windows
| -rw-r--r-- | src/tools/opt-dist/src/training.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/opt-dist/src/training.rs b/src/tools/opt-dist/src/training.rs index 30c79f95947..47159a43140 100644 --- a/src/tools/opt-dist/src/training.rs +++ b/src/tools/opt-dist/src/training.rs @@ -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") |
