aboutsummaryrefslogtreecommitdiff
path: root/pgo
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-09-04 16:29:55 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-09-12 08:39:45 +0000
commit6d67c2b4ab3194df40d383841fb95bcc2f033fa1 (patch)
tree5f306e66cca62f43752789fb7e4ed726b57dc528 /pgo
parentpgo: pgo.sh: allow a pre-existing build directory (diff)
pgo: pgo.sh: run ‘find’ in the build-directory, not cwd
Diffstat (limited to 'pgo')
-rwxr-xr-xpgo/pgo.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pgo/pgo.sh b/pgo/pgo.sh
index 39da2a30..af84e7ce 100755
--- a/pgo/pgo.sh
+++ b/pgo/pgo.sh
@@ -78,7 +78,7 @@ export CFLAGS
meson "${@}" "${blddir}" "${srcdir}" --buildtype=release -Db_lto=true
if [ ${do_pgo} = yes ]; then
- find . -name "*.gcda" -delete
+ find "${blddir}" -name "*.gcda" -delete
meson configure "${blddir}" -Db_pgo=generate
ninja -C "${blddir}"