Add -Xmx4096m for riscv64

(cherry picked from commit f13902a917d5a06941c6357603298b3d45737040)
This commit is contained in:
Dingli Zhang 2024-04-15 14:21:04 +08:00 committed by openeuler-sync-bot
parent ebb4161f7e
commit b214b56d65

View File

@ -1,6 +1,6 @@
Name: springframework Name: springframework
Version: 3.2.18 Version: 3.2.18
Release: 13 Release: 14
Summary: The Spring Java Application Framework Summary: The Spring Java Application Framework
License: ASL 2.0 License: ASL 2.0
URL: http://projects.spring.io/spring-framework/ URL: http://projects.spring.io/spring-framework/
@ -318,6 +318,9 @@ done
%mvn_package :spring-project __noinstall %mvn_package :spring-project __noinstall
%build %build
%if "%{_arch}" == "riscv64"
export JAVA_TOOL_OPTIONS="-Xmx4096m"
%endif
%mvn_build -X -f -s -- -Dproject.build.sourceEncoding=ISO-8859-1 -Dmaven.test.skip=true %mvn_build -X -f -s -- -Dproject.build.sourceEncoding=ISO-8859-1 -Dmaven.test.skip=true
%install %install
@ -356,6 +359,9 @@ done
%files web -f .mfiles-spring-web %files web -f .mfiles-spring-web
%changelog %changelog
* Thu Apr 11 2024 Dingli Zhang <dingli@iscas.ac.cn> - 3.2.18-14
- Add -Xmx4096m for riscv64
* Thu Jan 04 2024 xu_ping <707078654@qq.com> - 3.2.18-13 * Thu Jan 04 2024 xu_ping <707078654@qq.com> - 3.2.18-13
- remove unuse code - remove unuse code