From 0a966c8ea03c5ba4cd9afee135d9c3daab2ecf19 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 27 Jun 2024 13:38:21 +0200 Subject: core/gcc: disabled rust on i486 --- core/gcc/PKGBUILD | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'core') diff --git a/core/gcc/PKGBUILD b/core/gcc/PKGBUILD index ca003988..5572ce88 100644 --- a/core/gcc/PKGBUILD +++ b/core/gcc/PKGBUILD @@ -123,3 +123,23 @@ eval "$( s/--enable-cet=auto/--disable-cet/ ' )" + +# remove rust on i486 +if [ "${CARCH}" = "i486" ]; then + pkgname=( + $( + printf '%s\n' "${pkgname[@]}" | \ + grep -vFx 'gcc-rust' + ) + ) + package_gcc-rust() { + echo "No Rust on i486." + } + + eval "$( + declare -f build | \ + sed ' + /enable-languages/ s/,rust// + ' + )" +fi -- cgit v1.2.3-70-g09d2