mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-27 01:40:16 -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
|
mkdir -p bld/release && cd bld/release
|
||||||
```
|
```
|
||||||
|
|
||||||
Second, configure[^2] the build (if you intend to install it globally, you
|
Second, configure[^2] the build (suggested flags):
|
||||||
might also want `--prefix=/usr`):
|
|
||||||
```sh
|
```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
|
[^2]: for advanced users: a profile guided build will have
|
||||||
significantly better performance; take a look at
|
significantly better performance; take a look at
|
||||||
[PKDBUILD](PKGBUILD) to see how this can be done.
|
[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:
|
Three, build it:
|
||||||
```sh
|
```sh
|
||||||
ninja
|
ninja
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue