From a3b6ecf3b22d3980cde0f74bde677ba114927af1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 31 Aug 2021 16:48:49 +0200 Subject: [PATCH] meson-pgo: add mode=none --- meson-pgo.sh | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/meson-pgo.sh b/meson-pgo.sh index 2057c2a6..ca542351 100755 --- a/meson-pgo.sh +++ b/meson-pgo.sh @@ -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}"