Skip to content

Commit

Permalink
jdk8 select Xcode-11.7 only when cross-compiling (#3507) (#3508)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Leonard <[email protected]>
  • Loading branch information
andrew-m-leonard authored Oct 20, 2023
1 parent 0a45439 commit 16ac032
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build-farm/platform-specific-configurations/mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,14 @@ fi

if [ "${JAVA_TO_BUILD}" == "${JDK8_VERSION}" ]
then
XCODE_SWITCH_PATH="/Applications/Xcode-11.7.app"
export CONFIGURE_ARGS_FOR_ANY_PLATFORM="${CONFIGURE_ARGS_FOR_ANY_PLATFORM} --with-toolchain-type=clang"
if [[ "${MACHINEARCHITECTURE}" == "arm64" ]] && [[ "${ARCHITECTURE}" == "x64" ]]; then
# Cross compilation config needed only for jdk8
export MAC_ROSETTA_PREFIX="arch -x86_64"
export PATH=/opt/homebrew/bin:/usr/local/bin:$PATH
XCODE_SWITCH_PATH="/Applications/Xcode-11.7.app"
else
XCODE_SWITCH_PATH="/Applications/Xcode.app"
fi
if [ "${VARIANT}" == "${BUILD_VARIANT_OPENJ9}" ]; then
export CONFIGURE_ARGS_FOR_ANY_PLATFORM="${CONFIGURE_ARGS_FOR_ANY_PLATFORM} --with-openssl=fetched --enable-openssl-bundling"
Expand Down

0 comments on commit 16ac032

Please sign in to comment.