meson-pgo: add mode=none

This commit is contained in:
Daniel Eklöf 2021-08-31 16:48:49 +02:00
parent 8ea6c93515
commit a3b6ecf3b2
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -12,7 +12,7 @@ if [ -d ${build_dir} ]; then
fi
case ${mode} in
auto|partial|full|full-headless-sway)
none|auto|partial|full|full-headless-sway)
;;
*)
@ -42,15 +42,21 @@ case $(${CC-cc} --version) in
;;
esac
if [ ${mode} = auto ]; then
if command -v sway > /dev/null; then
mode=full-headless-sway
elif [ -n "${WAYLAND_DISPLAY+x}" ]; then
mode=full
else
mode=partial
fi
fi
case ${mode} in
none)
do_pgo=no
;;
auto)
if command -v sway > /dev/null; then
mode=full-headless-sway
elif [ -n "${WAYLAND_DISPLAY+x}" ]; then
mode=full
else
mode=partial
fi
;;
esac
# echo "source: ${source_dir}"
# echo "build: ${build_dir}"