index : packages | |
Archlinux32 package modifications | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2024-06-27 13:38:21 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2024-06-27 13:38:21 +0200 |
commit | 0a966c8ea03c5ba4cd9afee135d9c3daab2ecf19 (patch) | |
tree | d86072bccfc8508abfcd45d4772db49be8c3a0bc /core/gcc | |
parent | a8a092da980d40a7acb9a438d17ccc9df29de020 (diff) |
-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 |