From 2b96f32d19e850304cac35f7ada1e604d89b94ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 21 Aug 2019 19:41:41 +0200 Subject: [PATCH] PKGBUILD: prepare for profile guided compilation --- PKGBUILD | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/PKGBUILD b/PKGBUILD index 7ee4d3ac..c422b6d8 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -18,7 +18,12 @@ pkgver() { } build() { - meson --prefix=/usr --buildtype=release -Db_lto=true Dc_args="-fno-stack-protector" .. + meson --prefix=/usr --buildtype=release -Db_lto=true -Dc_args="-fno-stack-protector" -Db_pgo=generate .. + ninja + + # TODO: run something to actually create a profile + + meson --prefix=/usr --buildtype=release -Db_lto=true -Dc_args="-fno-stack-protector" -Db_pgo=use .. ninja }