Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2024-06-27 13:38:21 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2024-06-27 13:38:21 +0200
commit0a966c8ea03c5ba4cd9afee135d9c3daab2ecf19 (patch)
treed86072bccfc8508abfcd45d4772db49be8c3a0bc /core
parenta8a092da980d40a7acb9a438d17ccc9df29de020 (diff)
core/gcc: disabled rust on i486
Diffstat (limited to 'core')
-rw-r--r--core/gcc/PKGBUILD20
1 files changed, 20 insertions, 0 deletions
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