Add support for riscv64

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2024-03-27 14:17:46 +02:00
parent 39e5f525f9
commit f5729515c2
Signed by: davidlt
GPG Key ID: 7A5F42FAF91FACC3
1 changed files with 8 additions and 5 deletions

View File

@ -74,7 +74,7 @@
Name: %pkg_name
Version: %{clang_version}%{?rc_ver:~rc%{rc_ver}}%{?llvm_snapshot_version_suffix:~%{llvm_snapshot_version_suffix}}
Release: 1%{?dist}
Release: 1.0.riscv64%{?dist}
Summary: A C language family front-end for LLVM
License: Apache-2.0 WITH LLVM-exception OR NCSA
@ -326,7 +326,7 @@ rm test/CodeGen/profile-filter.c
%build
# Disable lto on i686 due to memory constraints.
%ifarch %ix86
%ifarch %ix86 riscv64
%define _lto_cflags %{nil}
%endif
@ -335,7 +335,7 @@ rm test/CodeGen/profile-filter.c
%global _lto_cflags %nil
%endif
%ifarch s390 s390x aarch64 %ix86 ppc64le
%ifarch s390 s390x aarch64 %ix86 ppc64le riscv64
# Decrease debuginfo verbosity to reduce memory consumption during final library linking
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
%endif
@ -347,7 +347,7 @@ rm test/CodeGen/profile-filter.c
%endif
# Disable dwz on aarch64, because it takes a huge amount of time to decide not to optimize things.
%ifarch aarch64
%ifarch aarch64 riscv64
%define _find_debuginfo_dwz_opts %{nil}
%endif
@ -363,7 +363,7 @@ rm test/CodeGen/profile-filter.c
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DPYTHON_EXECUTABLE=%{__python3} \
-DCMAKE_SKIP_RPATH:BOOL=ON \
%ifarch s390 s390x %ix86 ppc64le
%ifarch s390 s390x %ix86 ppc64le riscv64
-DCMAKE_C_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
%endif
@ -704,6 +704,9 @@ LD_LIBRARY_PATH=%{buildroot}/%{install_libdir} %{__ninja} check-all -C %{__cmake
%endif
%changelog
* Wed Mar 27 2024 David Abdurachmanov <davidlt@rivosinc.com> - 18.1.1-1.0.riscv64
- Add support for riscv64
* Mon Mar 11 2024 Tom Stellrd <tstellar@redhat.com> - 18.1.1-1
- 18.1.1 Release