Enable riscv64

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2023-03-22 12:12:20 +02:00
parent 7f2f0d9c64
commit bcde5ecff3
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 11 additions and 2 deletions

View File

@ -32,7 +32,12 @@
%{!?beta:%global beta 0}
%{!?test:%global test 1}
%ifnarch riscv64
%{!?llvmjit:%global llvmjit 1}
%else
# Disable LLVM on riscv64 until LLVM 16 lands
%{!?llvmjit:%global llvmjit 0}
%endif
%{!?external_libpq:%global external_libpq 0}
%{!?upgrade:%global upgrade 1}
%{!?plpython3:%global plpython3 1}
@ -65,7 +70,7 @@ Summary: PostgreSQL client programs
Name: postgresql
%global majorversion 15
Version: %{majorversion}.1
Release: 2%{?dist}
Release: 2.0.riscv64%{?dist}
# The PostgreSQL license is very similar to other MIT licenses, but the OSI
# recognizes it as an independent license, so we do as well.
@ -467,7 +472,7 @@ find . -type f -name .gitignore | xargs rm
%build
# Avoid LTO on armv7hl as it runs out of memory
%ifarch armv7hl s390x
%ifarch armv7hl s390x riscv64
%define _lto_cflags %{nil}
%endif
# fail quickly and obviously if user tries to build as root
@ -1263,6 +1268,10 @@ make -C postgresql-setup-%{setup_version} check
%changelog
* Tue Mar 22 2023 David Abdurachmanov <davidlt@rivosinc.com> - 15.1-2.0.riscv64
- Disable LTO on riscv64 to avoid large memory usage
- Disable LLVM JIT on riscv64 until LLVM 16 is available
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 15.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild