install.md: add -Wno-profile-instr-unprofiled to clang flags in PGO builds

This commit is contained in:
Daniel Eklöf 2020-12-21 12:24:29 +01:00
parent e95798e608
commit 5a1dcbb04d
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -186,7 +186,10 @@ later have a regression where PGO with `-O2` is **much** slower.
If you are using Clang instead of GCC, use the following `CFLAGS` instead:
```sh
export CFLAGS="$CFLAGS -O3 -march=native -Wno-ignored-optimization-argument -Wno-profile-instr-out-of-date"
export CFLAGS="$CFLAGS -O3 -march=native \
-Wno-ignored-optimization-argument \
-Wno-profile-instr-out-of-date \
-Wno-profile-instr-unprofiled"
```
Then, tell meson we want to _generate_ profiling data, and build: