Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code to cross compile x64 jdk8 on arm64 mac #3492

Merged
merged 15 commits into from
Oct 10, 2023
Merged
Prev Previous commit
Next Next commit
Update build-farm/platform-specific-configurations/mac.sh
Co-authored-by: Stewart X Addison <[email protected]>
Haroon-Khel and sxa authored Oct 3, 2023
commit 41e62d70a6691aa8676228c02d8c2abd3cbc0f77
2 changes: 1 addition & 1 deletion build-farm/platform-specific-configurations/mac.sh
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ 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 [[ "${MACHINEARCHITECURE}" == "arm64" ]] && [[ "${ARCHITECTURE}" == "x64" ]]; then
if [[ "${MACHINEARCHITECTURE}" == "arm64" ]] && [[ "${ARCHITECTURE}" == "x64" ]]; then
export CONFIGURE_ARGS_FOR_ANY_PLATFORM="${CONFIGURE_ARGS_FOR_ANY_PLATFORM} --openjdk-target=x86_64-apple-darwin"
export MAC_ROSETTA_PREFIX="arch -x86_64"
fi