From 56f52ac776e0d77cdcd2130744e2ff31484160a4 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Wed, 27 Mar 2024 12:24:47 +0200 Subject: [PATCH] Add support for riscv64 Signed-off-by: David Abdurachmanov --- llvm.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/llvm.spec b/llvm.spec index d8f116e..7567d48 100644 --- a/llvm.spec +++ b/llvm.spec @@ -24,7 +24,7 @@ %bcond_with compat_build %bcond_without check -%ifarch %ix86 +%ifarch %ix86 riscv64 # Disable LTO on x86 in order to reduce memory consumption %bcond_with lto_build %elif %{with snapshot_build} @@ -93,7 +93,7 @@ Name: %{pkg_name} Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}}%{?llvm_snapshot_version_suffix:~%{llvm_snapshot_version_suffix}} -Release: 1%{?dist} +Release: 1.0.riscv64%{?dist} Summary: The Low Level Virtual Machine License: Apache-2.0 WITH LLVM-exception OR NCSA @@ -259,7 +259,7 @@ mv %{third_party_srcdir} third-party %global _lto_cflags %nil %endif -%ifarch s390 s390x %ix86 +%ifarch s390 s390x %ix86 riscv64 # Decrease debuginfo verbosity to reduce memory consumption during final library linking %global optflags %(echo %{optflags} | sed 's/-g /-g1 /') %endif @@ -274,7 +274,7 @@ export ASMFLAGS="%{build_cflags}" -DLLVM_PARALLEL_LINK_JOBS=1 \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_SKIP_RPATH:BOOL=ON \ -%ifarch s390 %ix86 +%ifarch s390 %ix86 riscv64 -DCMAKE_C_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \ -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \ %endif @@ -583,6 +583,9 @@ fi %changelog %{?llvm_snapshot_changelog_entry} +* Wed Mar 27 2024 David Abdurachmanov - 18.1.1-1.0.riscv64 +- Add support for riscv64 + * Mon Mar 11 2024 Tom Stellard - 18.1.1-1 - 18.1.1 Release