Add support for riscv64

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2023-03-23 09:32:02 +02:00
parent b173c6109a
commit e5470172c8
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 11 additions and 3 deletions

View File

@ -15,7 +15,11 @@
%endif
%bcond_with compat_build
%ifnarch riscv64
%bcond_without check
%else
%bcond_with check
%endif
#global rc_ver 3
%global maj_ver 15
@ -74,7 +78,7 @@
Name: %{pkg_name}
Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}}
Release: 3%{?dist}
Release: 3.0.riscv64%{?dist}
Summary: The Low Level Virtual Machine
License: Apache-2.0 WITH LLVM-exception OR NCSA
@ -223,7 +227,7 @@ mv %{cmake_srcdir} cmake
%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
@ -237,7 +241,7 @@ export ASMFLAGS=$CFLAGS
-DLLVM_PARALLEL_LINK_JOBS=1 \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_SKIP_RPATH:BOOL=ON \
%ifarch s390 %{arm} %ix86
%ifarch s390 %{arm} %ix86 riscv64
-DCMAKE_C_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
%endif
@ -553,6 +557,10 @@ fi
%endif
%changelog
* Thu Mar 23 2023 David Abdurachmanov <davidlt@rivosinc.com> - 15.0.7-3.0.riscv64
- Disable tests on riscv64 for now
- Lower memory consumption on riscv64
* Thu Jan 19 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 15.0.7-3
- Update license to SPDX identifiers.
- Include the Apache license adopted in 2019.