mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-06 07:15:30 -04:00
Merge branch 'clang-wno-profile-instr-unprofile'
This commit is contained in:
commit
a83f2448bc
1 changed files with 8 additions and 1 deletions
|
|
@ -142,6 +142,10 @@ optimization.
|
||||||
In addition to being faster, PGO builds also tend to be smaller than
|
In addition to being faster, PGO builds also tend to be smaller than
|
||||||
regular `-O3` builds.
|
regular `-O3` builds.
|
||||||
|
|
||||||
|
**Note**: if you are packaging foot, you should probably remove
|
||||||
|
`-march=native`, as that may cause gcc/clang to emit instructions that
|
||||||
|
may not be available on other computers.
|
||||||
|
|
||||||
|
|
||||||
#### Size optimized
|
#### Size optimized
|
||||||
|
|
||||||
|
|
@ -186,7 +190,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:
|
If you are using Clang instead of GCC, use the following `CFLAGS` instead:
|
||||||
|
|
||||||
```sh
|
```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:
|
Then, tell meson we want to _generate_ profiling data, and build:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue