Skip to content

Commit

Permalink
enhance: enable lto
Browse files Browse the repository at this point in the history
  • Loading branch information
eval Nya authored and nexplorer-3e committed Jul 8, 2024
1 parent a1d23a7 commit 8280b22
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/openjdk-21/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ TERMUX_PKG_RECOMMENDS="ca-certificates-java, openjdk-21-x, resolv-conf"
TERMUX_PKG_SUGGESTS="cups"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_HAS_DEBUG=false
# currently zgc and shenandoahgc would be auto enabled in server variant,
# while these features is not supported on arm.
# only leave lto here.
__jvm_features="link-time-opt"

termux_step_pre_configure() {
unset JAVA_HOME
Expand All @@ -30,6 +34,7 @@ termux_step_configure() {
--with-version-pre="" \
--with-version-opt="" \
--with-jvm-variants=server \
--with-jvm-features="${__jvm_features}" \
--with-debug-level=release \
--openjdk-target=$TERMUX_HOST_PLATFORM \
--with-toolchain-type=clang \
Expand Down

0 comments on commit 8280b22

Please sign in to comment.