Skip to content

Commit 515535a

Browse files
authored
Update profile-guided-optimization.md
1 parent 3ecc8c3 commit 515535a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/doc/rustc/src/profile-guided-optimization.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,10 @@ it in their repository accessible from this link: https://github.com/Kobzol/carg
156156
For the sake of completeness, here are the corresponding steps using `cargo-pgo`:
157157

158158
```bash
159-
# Install the binary as usual: cargo install cargo-pgo
159+
# Install if you haven't already
160+
cargo install cargo-pgo
161+
160162
cargo pgo build
161-
LLVM_PROFILE_FILE=./target/pgo-profiles/rustc-pgo_%m_%p.profraw ./target/x86_64-unknown-linux-gnu/release/myprogram
162163
cargo pgo optimize
163164
```
164165

0 commit comments

Comments
 (0)