2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-21 23:00:06 -07:00

foot-pgo: minor fixes

This commit is contained in:
Dylan Araps 2021-07-18 06:47:02 +03:00
parent 9ce331842a
commit ba38c8484f
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

View File

@ -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