From 23c444076c165f81238d7ec3f050739387f102d5 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Thu, 15 Apr 2021 13:15:02 +0300 Subject: [PATCH] Add support for riscv64 Signed-off-by: David Abdurachmanov --- compiler-rt.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/compiler-rt.spec b/compiler-rt.spec index 6d1c79c..81029ae 100644 --- a/compiler-rt.spec +++ b/compiler-rt.spec @@ -12,7 +12,7 @@ Name: compiler-rt Version: 11.0.0 -Release: %{baserelease}%{?rc_ver:.rc%{rc_ver}}%{?dist} +Release: %{baserelease}%{?rc_ver:.rc%{rc_ver}}.0.riscv64%{?dist} Summary: LLVM "compiler-rt" runtime libraries License: NCSA or MIT @@ -72,7 +72,12 @@ pathfix.py -i %{__python3} -pn lib/hwasan/scripts/hwasan_symbolize # move blacklist/abilist files to where clang expect them mkdir -p %{buildroot}%{_libdir}/clang/%{version}/share +# no lists are available on riscv64 +%ifarch riscv64 +mv -v %{buildroot}%{_datadir}/*list.txt %{buildroot}%{_libdir}/clang/%{version}/share/ || : +%else mv -v %{buildroot}%{_datadir}/*list.txt %{buildroot}%{_libdir}/clang/%{version}/share/ +%endif # move sanitizer libs to better place %global libclang_rt_installdir lib/linux @@ -113,6 +118,9 @@ popd %endif %changelog +* Thu Apr 15 2021 David Abdurachmanov - 11.0.0-1.0.riscv64 +- Add riscv64 + * Thu Oct 15 2020 sguelton@redhat.com - 11.0.0-1 - Fix NVR