File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,17 @@ RUSTFLAGS="-Cprofile-use=/tmp/pgo-data/merged.profdata" \
125125 cargo build --release --target=x86_64-unknown-linux-gnu
126126```
127127
128+ ### Troubleshooting
129+
130+ - It is recommended to pass ` -Cllvm-args=-pgo-warn-missing-function ` during the
131+ ` -Cprofile-use ` phase. LLVM by default does not warn if it cannot find
132+ profiling data for a given function. Enabling this warning will make it
133+ easier to spot errors in your setup.
134+
135+ - There is a [ known issue] ( https://github.com/rust-lang/cargo/issues/7416 ) in
136+ Cargo prior to version 1.39 that will prevent PGO from working correctly. Be
137+ sure to use Cargo 1.39 or newer when doing PGO.
138+
128139## Further Reading
129140
130141` rustc ` 's PGO support relies entirely on LLVM's implementation of the feature
You can’t perform that action at this time.
0 commit comments