Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/core/gcc/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'core/gcc/PKGBUILD')
-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