diff --git a/wayland/foot-pgo/build b/wayland/foot-pgo/build index d22631f6..041f45fa 100755 --- a/wayland/foot-pgo/build +++ b/wayland/foot-pgo/build @@ -9,12 +9,16 @@ sed "/subdir('doc')/d" meson.build > _ mv -f _ meson.build -# PGO with < -O3 is slow > GCC 10.1.X. -export CFLAGS="$CFLAGS -O3" +case $("$CC" --version) in + *clang*) + # Clang requires this for PGO. + export CFLAGS="$CFLAGS -Wno-ignored-optimization-argument" + ;; -# Clang requires this for PGO. -case $("${CC:-cc}" --version) in *clang*) - export CFLAGS="$CFLAGS -Wno-ignored-optimization-argument" + *gcc*) + # PGO with < -O3 is slow > GCC 10.1.X. + export CFLAGS="$CFLAGS -O3" + ;; esac mkdir -p bld/release