diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-04-14 21:55:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-14 21:55:37 +0200 |
| commit | 9b564dfc1df52e12876a6a00c4efcece058b688c (patch) | |
| tree | bbf754ce84c1805a64ccc43517799b855d43027f | |
| parent | efca25fddcc7344280fa2b1e52dd31479f4a38f9 (diff) | |
| parent | 86e2a07a13ce7fd6f68c71802db8f8c8eebe0ad0 (diff) | |
| download | rust-9b564dfc1df52e12876a6a00c4efcece058b688c.tar.gz rust-9b564dfc1df52e12876a6a00c4efcece058b688c.zip | |
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
| -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") |
