gnu: openjdk10: Conditionally disable C2 compiler when importing certificates.

* gnu/packages/java.scm (openjdk10)[arguments]: Conditionally add phase
'disable-C2-compiler on 32-bit x86.

Change-Id: Id8a90deb686cb1354c53faac11b91af098e83f6e
This commit is contained in:
Ricardo Wurmus
2026-04-17 15:39:42 +02:00
parent 28bbf602f2
commit 10e91016dc

View File

@@ -1285,7 +1285,13 @@ new Date();"))))
;; It looks like the "--disable-warnings-as-errors" option of
;; the 'configure' phase is not working.
(substitute* "make/autoconf/generated-configure.sh"
(("-Werror") ""))))))
(("-Werror") ""))))
#$@(if (target-x86-32?)
;; On i686 the C2 compiler sometimes crashes when importing
;; certificates.
#~((add-before 'install-keystore 'disable-C2-compiler
(lambda _ (setenv "_JAVA_OPTIONS" "-XX:TieredStopAtLevel=1"))))
#~())))
((#:disallowed-references refs '())
(cons* (this-package-native-input "openjdk")
(gexp-input (this-package-native-input "openjdk") "jdk")