From b51a1668d2411f9bb2e0787674c8ea4c38c24e68 Mon Sep 17 00:00:00 2001 From: Dingli Zhang Date: Tue, 16 Apr 2024 13:37:51 +0000 Subject: [PATCH] Add -Xmx4096m for riscv64 (cherry picked from commit 3171f1ffbc208a05f97fe17e2b52fd49b7cffe74) --- gradle.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gradle.spec b/gradle.spec index 5175e9b..babaf58 100644 --- a/gradle.spec +++ b/gradle.spec @@ -1,7 +1,7 @@ %bcond_with bootstrap Name: gradle Version: 4.4.1 -Release: 3 +Release: 4 Summary: Build automation tool License: ASL 2.0 URL: http://www.gradle.org/ @@ -175,6 +175,9 @@ rm -r subprojects/resources-gcs rm -r subprojects/ide-native %build +%if "%{_arch}" == "riscv64" +export JAVA_TOOL_OPTIONS="-Xmx4096m" +%endif export LANG=en_US.UTF8 %if %{with bootstrap} mkdir -p subprojects/docs/src/main/resources @@ -237,6 +240,9 @@ install -p -m 644 man/gradle.1 %{buildroot}%{_mandir}/man1/gradle.1 %license LICENSE NOTICE %changelog +* Tue Apr 16 2024 Dingli Zhang - 4.4.1-4 +- Add -Xmx4096m for riscv64 + * Fri Jul 30 2021 chenyanpanHW - 4.4.1-3 - DESC: delete -S git from %autosetup, and delete BuildRequires git -- Gitee