mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
readme: add suggested cflags for a release build
This commit is contained in:
parent
33346ba02d
commit
dea36de7e3
1 changed files with 10 additions and 3 deletions
13
README.md
13
README.md
|
|
@ -383,16 +383,23 @@ To build, first, create a build directory, and switch to it:
|
|||
mkdir -p bld/release && cd bld/release
|
||||
```
|
||||
|
||||
Second, configure[^2] the build (if you intend to install it globally, you
|
||||
might also want `--prefix=/usr`):
|
||||
Second, configure[^2] the build (suggested flags):
|
||||
```sh
|
||||
meson --buildtype=release ../..
|
||||
meson --buildtype=release --prefix=/usr \
|
||||
-Db_lto=true -Dc_args="-march=native -fno-plt" ../..
|
||||
```
|
||||
|
||||
[^2]: for advanced users: a profile guided build will have
|
||||
significantly better performance; take a look at
|
||||
[PKDBUILD](PKGBUILD) to see how this can be done.
|
||||
|
||||
To instead do a debug build (for example, to be able to provide a
|
||||
meaningful backtrace when reporting a bug):
|
||||
|
||||
```sh
|
||||
meson --buildtype=debug ../..
|
||||
```
|
||||
|
||||
Three, build it:
|
||||
```sh
|
||||
ninja
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue