diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2022-02-18 20:17:00 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2022-02-18 20:17:00 +0100 |
commit | 4855c8fb13377cff63e5a83bec409dce8916e420 (patch) | |
tree | 8127cc406e0bb0d36a0546417ef4ff497c75a2d6 /core/gcc/PKGBUILD | |
parent | c94080db2b37e5513e8fd4e5ef50d08021a0bdc5 (diff) | |
download | packages-4855c8fb13377cff63e5a83bec409dce8916e420.tar.xz |
core/gcc: disable LTO/PGO on i486
Diffstat (limited to 'core/gcc/PKGBUILD')
-rw-r--r-- | core/gcc/PKGBUILD | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/gcc/PKGBUILD b/core/gcc/PKGBUILD index ed5410b9..b27a142c 100644 --- a/core/gcc/PKGBUILD +++ b/core/gcc/PKGBUILD @@ -114,5 +114,17 @@ source[1]='isl-0.24.tar.xz::https://downloads.sourceforge.net/project/libisl/isl makedepends=(${makedepends[@]//lib32-glibc/}) makedepends=(${makedepends[@]//lib32-gcc-libs/}) +# i486-specific: disable PGO/LTO build, uses too much resources, +# also disabling LTO for now +if [ "${CARCH}" = "i486" ]; then + eval "$( + declare -f build | \ + sed ' + s/--enable-pgo-build=.*/--disable-pgo-build/ + s/--enable-lto/--disable-lto/ + ' + )" +fi + # no testing for now unset check |