Enable riscv64

See:
c1b6a92854

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2024-10-14 16:45:43 +03:00
parent d27ec71c29
commit 49328c0eaa
Signed by: davidlt
GPG Key ID: 7A5F42FAF91FACC3

View File

@ -13,7 +13,7 @@
Name: llvm-bolt
Version: %{bolt_version}%{?rc_ver:~rc%{rc_ver}}
Release: 1%{?dist}
Release: 1.0.riscv64%{?dist}
Summary: a post-link optimizer developed to speed up large applications
License: Apache-2.0 WITH LLVM-exception
@ -92,7 +92,7 @@ Documentation for the BOLT optimizer
-DBOLT_LLD_EXE=%{_bindir}/ld.lld\
-DLLVM_EXTERNAL_LIT=%{_bindir}/lit \
-DLLVM_ENABLE_PROJECTS="bolt" \
-DLLVM_TARGETS_TO_BUILD="X86;AArch64"
-DLLVM_TARGETS_TO_BUILD="X86;AArch64;RISCV"
# Set LD_LIBRARY_PATH now because we skip rpath generation and the build uses
# some just built libraries.
@ -152,9 +152,10 @@ rm -f %{buildroot}/%{_builddir}/%{bolt_srcdir}/%{_vpath_builddir}/%{_lib}/lib*.a
%{_bindir}/merge-fdata
%{_bindir}/perf2bolt
%ifnarch riscv64
%{_libdir}/libbolt_rt_hugify.a
%{_libdir}/libbolt_rt_instr.a
%endif
%files doc
%doc %{_pkgdocdir}