git » rust.git » commit 3e8af18

rust 1.77.2

author Urja (ARMLFS builder)
2024-07-12 17:47:53 UTC
committer Urja (ARMLFS builder)
2024-07-12 17:47:53 UTC
parent d358c5dc31ca3b371f03dddee03934f1172ae6fe

rust 1.77.2

PKGBUILD +5 -5
pre-build-special.sh +1 -1

diff --git a/PKGBUILD b/PKGBUILD
index 7392bcf..85a600a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -24,7 +24,7 @@ pkgver=1.77.2
 pkgrel=1
 pkgdesc="Systems programming language focused on safety, speed and concurrency"
 url=https://www.rust-lang.org/
-arch=(armv7h)
+arch=(armv7h 'aarch64')
 license=("Apache-2.0 OR MIT")
 options=(
   !emptydirs
@@ -176,11 +176,11 @@ ar = "/usr/bin/gcc-ar"
 ranlib = "/usr/bin/gcc-ranlib"
 llvm-config = "/usr/bin/llvm-config"
 END
-  # This is a huge hack, but the build host is volatile, so who cares lol
-  su -c "mv /usr/libexec/gcc /usr/libexec/gcc32"
-  su -c "ln -s ../cross-a64/libexec/gcc /usr/libexec/gcc"
-  export PATH=/usr/cross-a64/bin:$PATH
   if [[ $CARCH == armv7h ]]; then
+  # This is a huge hack, but the build host is volatile, so who cares lol
+    su -c "mv /usr/libexec/gcc /usr/libexec/gcc32"
+    su -c "ln -s ../cross-a64/libexec/gcc /usr/libexec/gcc"
+    export PATH=/usr/cross-a64/bin:$PATH
     mkdir path
     ln -s /usr/bin/g++ path/arm-linux-gnueabihf-g++
     export PATH="$srcdir/path:$PATH"
diff --git a/pre-build-special.sh b/pre-build-special.sh
index 991f96e..cbb13f0 100755
--- a/pre-build-special.sh
+++ b/pre-build-special.sh
@@ -1,2 +1,2 @@
 #!/bin/bash
-su -c "pacman -U --noconfirm /sources/archives/base/rust/bootstrap/rust*.pkg.tar.xz"
+su -c "pacman -U --noconfirm /sources/archives/base/rust/bootstrap/rust*-$CARCH.pkg.tar.xz"