mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-05-01 06:46:43 -04:00
PKGBUILD: only do a PGO build if we have a Wayland session
This commit is contained in:
parent
e0ef500045
commit
a98eb771fa
1 changed files with 10 additions and 7 deletions
3
PKGBUILD
3
PKGBUILD
|
|
@ -16,6 +16,7 @@ pkgver() {
|
||||||
build() {
|
build() {
|
||||||
meson --prefix=/usr --buildtype=release --wrap-mode=nofallback -Db_lto=true ..
|
meson --prefix=/usr --buildtype=release --wrap-mode=nofallback -Db_lto=true ..
|
||||||
|
|
||||||
|
if [[ -v WAYLAND_DISPLAY ]]; then
|
||||||
meson configure -Db_pgo=generate
|
meson configure -Db_pgo=generate
|
||||||
find -name "*.gcda" -delete
|
find -name "*.gcda" -delete
|
||||||
ninja
|
ninja
|
||||||
|
|
@ -25,6 +26,8 @@ build() {
|
||||||
rm "${tmp_file}"
|
rm "${tmp_file}"
|
||||||
|
|
||||||
meson configure -Db_pgo=use
|
meson configure -Db_pgo=use
|
||||||
|
fi
|
||||||
|
|
||||||
ninja
|
ninja
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue