index : packages | |
Archlinux32 package modifications | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | core/gcc/PKGBUILD | 20 |
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 |