forked from kiss-community/repo
foot-pgo: minor fixes
This commit is contained in:
parent
9ce331842a
commit
ba38c8484f
@ -9,12 +9,16 @@
|
|||||||
sed "/subdir('doc')/d" meson.build > _
|
sed "/subdir('doc')/d" meson.build > _
|
||||||
mv -f _ meson.build
|
mv -f _ meson.build
|
||||||
|
|
||||||
# PGO with < -O3 is slow > GCC 10.1.X.
|
case $("$CC" --version) in
|
||||||
export CFLAGS="$CFLAGS -O3"
|
*clang*)
|
||||||
|
# Clang requires this for PGO.
|
||||||
|
export CFLAGS="$CFLAGS -Wno-ignored-optimization-argument"
|
||||||
|
;;
|
||||||
|
|
||||||
# Clang requires this for PGO.
|
*gcc*)
|
||||||
case $("${CC:-cc}" --version) in *clang*)
|
# PGO with < -O3 is slow > GCC 10.1.X.
|
||||||
export CFLAGS="$CFLAGS -Wno-ignored-optimization-argument"
|
export CFLAGS="$CFLAGS -O3"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
mkdir -p bld/release
|
mkdir -p bld/release
|
||||||
|
Loading…
Reference in New Issue
Block a user