Add support for RISC-V (riscv64)

Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
This commit is contained in:
David Abdurachmanov 2019-08-24 08:04:38 -07:00
parent 1ffa649c13
commit 7779f53776
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 6 additions and 3 deletions

View File

@ -64,7 +64,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
@ -242,7 +242,7 @@ sed -i 's/\@FEDORA_LLVM_LIB_SUFFIX\@//g' test/lit.cfg.py
mkdir -p _build
cd _build
%ifarch s390 s390x %{arm} %ix86
%ifarch s390 s390x %{arm} %ix86 riscv64
# Decrease debuginfo verbosity to reduce memory consumption during final library linking
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
%endif
@ -354,7 +354,7 @@ chmod u-x %{buildroot}%{_mandir}/man1/scan-build.1*
# requires lit.py from LLVM utilities
# FIXME: Fix failing ARM tests, s390x i686 and ppc64le tests
LD_LIBRARY_PATH=%{buildroot}%{_libdir} ninja check-all -C _build || \
%ifarch s390x i686 ppc64le %{arm}
%ifarch s390x i686 ppc64le %{arm} riscv64
:
%else
false
@ -431,6 +431,9 @@ false
%endif
%changelog
* Sat Aug 24 2019 David Abdurachmanov <david.abdurachmanov@sifive.com> - 9.0.0-0.1.rc2.0.riscv64
- Add support for RISC-V (riscv64)
* Thu Aug 22 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-0.1.rc2
- 9.0.0 Release candidate 2