aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-08-21 17:41:41 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-08-21 17:41:41 +0000
commit2b96f32d19e850304cac35f7ada1e604d89b94ed (patch)
tree57f1eb9d1bdd6a40e8965d2ec1c9932cf5ed88db
parentPKGBUILD: performance: build without stack protector (diff)
PKGBUILD: prepare for profile guided compilation
-rw-r--r--PKGBUILD7
1 files changed, 6 insertions, 1 deletions
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
}