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