From 9d7ae82d71fae6a4a0be759130c4df33ef37ba89 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Fri, 4 Nov 2022 13:10:18 +0200 Subject: [PATCH] Enable riscv64 Signed-off-by: David Abdurachmanov --- rust.spec | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/rust.spec b/rust.spec index a0953ba..c21d4ce 100644 --- a/rust.spec +++ b/rust.spec @@ -1,6 +1,6 @@ # Only x86_64 and i686 are Tier 1 platforms at this time. # https://doc.rust-lang.org/nightly/rustc/platform-support.html -%global rust_arches x86_64 i686 armv7hl aarch64 ppc64le s390x +%global rust_arches x86_64 i686 armv7hl aarch64 ppc64le s390x riscv64 # The channel can be stable, beta, or nightly %{!?channel: %global channel stable} @@ -76,15 +76,19 @@ %endif # LLDB isn't available everywhere... +%ifnarch riscv64 %if 0%{?rhel} && 0%{?rhel} < 8 %bcond_with lldb %else %bcond_without lldb %endif +%else +%bcond_with lldb +%endif Name: rust Version: 1.64.0 -Release: 1%{?dist} +Release: 1.0.riscv64%{?dist} Summary: The Rust Programming Language License: (ASL 2.0 or MIT) and (BSD and MIT) # ^ written as: (rust itself) and (bundled libraries) @@ -671,7 +675,7 @@ find -name '*.rs' -type f -perm /111 -exec chmod -v -x '{}' '+' %build %{export_rust_env} -%ifarch %{arm} %{ix86} s390x +%ifarch %{arm} %{ix86} s390x riscv64 # full debuginfo is exhausting memory; just do libstd for now # https://github.com/rust-lang/rust/issues/45854 %if 0%{?rhel} && 0%{?rhel} < 8 @@ -1054,6 +1058,9 @@ end} %changelog +* Fri Nov 04 2022 David Abdurachmanov - 1.64.0-1.0.riscv64 +- Enable riscv64 + * Thu Sep 22 2022 Josh Stone - 1.64.0-1 - Update to 1.64.0. - Add rust-analyzer.