aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--PKGBUILD6
1 files changed, 5 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 4d571626..c3b0f929 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,7 +14,11 @@ pkgver() {
}
build() {
- export CFLAGS+=" -O3"
+ # makepkg uses -O2 by default, but we *really* want -O3
+ # -Wno-missing-profile since we're not exercising everything when doing PGO builds
+ # -fno-plt because performance (this is the default in makepkg anyway)
+ export CFLAGS+=" -O3 -Wno-missing-profile -fno-plt"
+
meson --prefix=/usr --buildtype=release --wrap-mode=nofallback -Db_lto=true ..
if [[ -v WAYLAND_DISPLAY ]]; then