Add -Xmx4096m for riscv64

(cherry picked from commit 3171f1ffbc208a05f97fe17e2b52fd49b7cffe74)
This commit is contained in:
Dingli Zhang 2024-04-16 13:37:51 +00:00 committed by openeuler-sync-bot
parent 74dc60b287
commit b51a1668d2

View File

@ -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 <dingli@iscas.ac.cn> - 4.4.1-4
- Add -Xmx4096m for riscv64
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 4.4.1-3
- DESC: delete -S git from %autosetup, and delete BuildRequires git