remove pre-generated input corpus for PGO

This commit is contained in:
Daniel Eklöf 2020-11-16 19:40:41 +01:00
parent 001d309b81
commit e1bde0b0e7
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 45 additions and 13 deletions

View file

@ -1,5 +1,5 @@
pkgname=('foot-git' 'foot-terminfo-git')
pkgver=1.5.3
pkgver=1.5.3.r212.gd023cd3
pkgrel=1
arch=('x86_64' 'aarch64')
url=https://codeberg.org/dnkl/foot
@ -20,18 +20,31 @@ build() {
meson --prefix=/usr --buildtype=release --wrap-mode=nofallback -Db_lto=true ..
find -name "*.gcda" -delete
meson configure -Db_pgo=generate
ninja
script_options="--scroll --scroll-region --colors-regular --colors-bright --colors-256 --colors-rgb"
tmp_file=$(mktemp)
if [[ -v WAYLAND_DISPLAY ]]; then
meson configure -Db_pgo=generate
find -name "*.gcda" -delete
ninja
tmp_file=$(mktemp)
./foot --config /dev/null --term=xterm -- sh -c "../scripts/generate-alt-random-writes.py --scroll --scroll-region --colors-regular --colors-bright --colors-256 --colors-rgb ${tmp_file} && cat ${tmp_file}"
rm "${tmp_file}"
meson configure -Db_pgo=use
./foot \
--config /dev/null \
--term=xterm \
sh -c "../scripts/generate-alt-random-writes.py ${script_options} ${tmp_file} && cat ${tmp_file}"
else
../scripts/generate-alt-random-writes.py \
--rows=67 \
--cols=135 \
${script_options} \
${tmp_file}
./pgo ${tmp_file} ${tmp_file} ${tmp_file} ${tmp_file} ${tmp_file} ${tmp_file}
fi
rm "${tmp_file}"
meson configure -Db_pgo=use
ninja
}