From f5729515c2a0b4f47d5509197fa0e706b7c6f3b6 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Wed, 27 Mar 2024 14:17:46 +0200 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 8fc4f44..6973113 100644 --- a/clang.spec +++ b/clang.spec @@ -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 - 18.1.1-1.0.riscv64 +- Add support for riscv64 + * Mon Mar 11 2024 Tom Stellrd - 18.1.1-1 - 18.1.1 Release