Skip to content

Commit

Permalink
Don't use --enable-compatible-cds-alignment for OpenJ9 builds
Browse files Browse the repository at this point in the history
Signed-off-by: Keith W. Campbell <[email protected]>
  • Loading branch information
keithc-ca committed May 15, 2024
1 parent 01fe609 commit 6c97725
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sbin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,8 @@ buildingTheRestOfTheConfigParameters() {

# For jdk-17+ aarch64 linux, we need to add --enable-compatible-cds-alignment, until upstream
# fix for https://bugs.openjdk.org/browse/JDK-8331942 is merged into all jdk-17+ versions
if [ "${BUILD_CONFIG[OPENJDK_FEATURE_NUMBER]}" -ge 17 ] && [ "${BUILD_CONFIG[OS_KERNEL_NAME]}" == "linux" ] && [ "${BUILD_CONFIG[OS_ARCHITECTURE]}" == "aarch64" ]; then
# (but not for OpenJ9 where it's not supported)
if [ "${BUILD_CONFIG[OPENJDK_FEATURE_NUMBER]}" -ge 17 ] && [ "${BUILD_CONFIG[OS_KERNEL_NAME]}" == "linux" ] && [ "${BUILD_CONFIG[OS_ARCHITECTURE]}" == "aarch64" ] && [ "${BUILD_CONFIG[BUILD_VARIANT]}" != "${BUILD_VARIANT_OPENJ9}" ]; then
addConfigureArg "--enable-compatible-cds-alignment" ""
fi
}
Expand Down

0 comments on commit 6c97725

Please sign in to comment.