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:
parent
9ce331842a
commit
ba38c8484f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user