PKGBUILD: prepare for profile guided compilation

This commit is contained in:
Daniel Eklöf 2019-08-21 19:41:41 +02:00
parent c75518123b
commit 2b96f32d19
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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
}