Skip to content

Commit c160f21

Browse files
committed
add support for aarch64
1 parent 3776565 commit c160f21

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

rust.spec

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ Source2: https://static.rust-lang.org/dist/%{bootstrap_date}/rust-%{bootstrap_ru
4747
# Source2-md5: be3f4d5143483c754a3c272eb213cd07
4848
Source3: https://static.rust-lang.org/dist/%{bootstrap_date}/rust-std-%{bootstrap_rust}-x86_64-unknown-linux-gnux32.tar.xz
4949
# Source3-md5: 38da0bf057e0801669f18f74555830bf
50+
Source4: https://static.rust-lang.org/dist/%{bootstrap_date}/rust-%{bootstrap_rust}-aarch64-unknown-linux-gnu.tar.xz
51+
# Source4-md5: 3408e035e4257846e9417148e1f50412
5052
URL: https://www.rust-lang.org/
5153
# for src/compiler-rt
5254
BuildRequires: cmake >= 3.4.3
@@ -70,7 +72,7 @@ Requires: gcc
7072
# Only x86_64 and i686 are Tier 1 platforms at this time.
7173
# x32 is Tier 2, only rust-std is available (no rustc or cargo).
7274
# https://doc.rust-lang.org/stable/book/getting-started.html#tier-1
73-
ExclusiveArch: %{x8664} %{ix86} x32
75+
ExclusiveArch: %{x8664} %{ix86} x32 aarch64
7476
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
7577

7678
%ifarch x32
@@ -238,6 +240,9 @@ tar xf %{SOURCE3}
238240
%{__mv} rust-std-%{bootstrap_rust}-%{rust_triple} rust-std-%{rust_triple}
239241
cd ..
240242
%endif
243+
%ifarch aarch64
244+
tar xf %{SOURCE4}
245+
%endif
241246
%{__mv} %{bootstrap_root} %{bootstrap_root}-root
242247
%{bootstrap_root}-root/install.sh \
243248
--components=cargo,rustc,rust-std-%{rust_bootstrap_triple} \

0 commit comments

Comments
 (0)