From 1265675c3af5198ec1017a87bccf19f826f02d2f Mon Sep 17 00:00:00 2001 From: Jason Montleon Date: Tue, 30 Jul 2024 18:53:37 -0400 Subject: [PATCH] Update pypy3.9.spec for riscv64 Signed-off-by: Jason Montleon --- pypy3.9.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pypy3.9.spec b/pypy3.9.spec index 3e03ff3..728bf6a 100644 --- a/pypy3.9.spec +++ b/pypy3.9.spec @@ -11,7 +11,7 @@ Version: %{basever}.%{micro}%{?pre:~%{pre}} # This potentially allows tags like Obsoletes: pypy3 < %%{version}-%%{release}. # https://bugzilla.redhat.com/2053880 %global baserelease %{autorelease -n} -Release: %{baserelease}.%{pyversion}%{?dist} +Release: %{baserelease}.%{pyversion}.0.riscv64%{?dist} Summary: Python %{pyversion} implementation with a Just-In-Time compiler # PyPy is MIT @@ -371,6 +371,10 @@ rm lib-python/3/distutils/command/*.exe # Top memory usage is about 4.5GB on arm7hf free +%ifarch riscv64 +export PYPY_MULTIARCH=riscv64-linux-gnu +%endif + BuildPyPy() { ExeName=$1 Options=$2 @@ -451,6 +455,9 @@ BuildPyPy() { --gcrootfinder=shadowstack \ $Options \ targetpypystandalone \ +%ifarch riscv64 + --withoutmod-_continuation \ +%endif --platlibdir=%{_lib} echo "--------------------------------------------------------------"