From f47208ea85e0e30f85ee17697291515eefe5f351 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Thu, 15 Apr 2021 13:20:44 +0300 Subject: [PATCH] Add support for riscv64 Signed-off-by: David Abdurachmanov --- clang.spec | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/clang.spec b/clang.spec index da60c58..23b912d 100644 --- a/clang.spec +++ b/clang.spec @@ -71,7 +71,7 @@ Name: %pkg_name Version: %{maj_ver}.%{min_ver}.%{patch_ver} -Release: %{baserelease}%{?rc_ver:.rc%{rc_ver}}%{?dist} +Release: %{baserelease}%{?rc_ver:.rc%{rc_ver}}.0.riscv64%{?dist} Summary: A C language family front-end for LLVM License: NCSA @@ -287,7 +287,7 @@ pathfix.py -i %{__python3} -pn \ %build # We run the builders out of memory on armv7 and i686 when LTO is enabled -%ifarch %{arm} i686 +%ifarch %{arm} i686 riscv64 %define _lto_cflags %{nil} %endif @@ -297,7 +297,7 @@ sed -i 's/\@FEDORA_LLVM_LIB_SUFFIX\@/64/g' test/lit.cfg.py sed -i 's/\@FEDORA_LLVM_LIB_SUFFIX\@//g' test/lit.cfg.py %endif -%ifarch s390 s390x %{arm} %ix86 ppc64le +%ifarch s390 s390x %{arm} %ix86 ppc64le riscv64 # Decrease debuginfo verbosity to reduce memory consumption during final library linking %global optflags %(echo %{optflags} | sed 's/-g /-g1 /') %endif @@ -312,7 +312,7 @@ sed -i 's/\@FEDORA_LLVM_LIB_SUFFIX\@//g' test/lit.cfg.py -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DPYTHON_EXECUTABLE=%{__python3} \ -DCMAKE_INSTALL_RPATH:BOOL=";" \ -%ifarch s390 s390x %{arm} %ix86 ppc64le +%ifarch s390 s390x %{arm} %ix86 ppc64le riscv64 -DCMAKE_C_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \ -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \ %endif @@ -429,7 +429,7 @@ rm -Rvf %{buildroot}%{_includedir}/clang-tidy/ # requires lit.py from LLVM utilities # FIXME: Fix failing ARM tests LD_LIBRARY_PATH=%{buildroot}/%{_libdir} %cmake_build --target check-all || \ -%ifarch %{arm} +%ifarch %{arm} riscv64 : %else false @@ -506,6 +506,9 @@ false %endif %changelog +* Thu Apr 15 2021 David Abdurachmanov - 11.0.0-2.0.riscv64 +- Add support for riscv64 + * Thu Oct 29 2020 sguelton@redhat.com - 11.0.0-2 - Prevent ABI conflict with release candidate - Prefer gcc toolchains with libgcc_s