aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-09-04 16:50:05 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-09-12 08:39:45 +0000
commit5493267bf7ca08527e563717b4bf7812388f79f5 (patch)
tree41a9b85b9e01c79f1fb860bb909c14c2cff05ae7
parentpkgbuild: the pgo script erases the old profdata files (diff)
pgo: pgo.sh: remove both gcc and clang generated profile stats
-rwxr-xr-xpgo/pgo.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/pgo/pgo.sh b/pgo/pgo.sh
index fd7d05a3..9db50e08 100755
--- a/pgo/pgo.sh
+++ b/pgo/pgo.sh
@@ -78,7 +78,14 @@ export CFLAGS
meson setup --buildtype=release -Db_lto=true "${@}" "${blddir}" "${srcdir}"
if [ ${do_pgo} = yes ]; then
- find "${blddir}" -name "*.gcda" -delete
+ find "${blddir}" \
+ '(' \
+ -name "*.gcda" -o \
+ -name "*.profraw" -o \
+ -name default.profdata \
+ ')' \
+ -delete
+
meson configure "${blddir}" -Db_pgo=generate
ninja -C "${blddir}"