Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--xtask/src/dist.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/xtask/src/dist.rs b/xtask/src/dist.rs
index a07244252b..8b9872f077 100644
--- a/xtask/src/dist.rs
+++ b/xtask/src/dist.rs
@@ -168,7 +168,7 @@ fn gather_pgo_profile<'a>(
.read()
.context("cannot resolve target-libdir from rustc")?;
let target_bindir = PathBuf::from(target_libdir).parent().unwrap().join("bin");
- let llvm_profdata = target_bindir.join(format!("llvm-profdata{}", EXE_EXTENSION));
+ let llvm_profdata = target_bindir.join("llvm-profdata").with_extension(EXE_EXTENSION);
// Build RA with PGO instrumentation
let cmd_gather =