Skip to content

Commit

Permalink
only specify --openjdk-target when cross compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
gdams committed Aug 22, 2024
1 parent 015181e commit 99bfbf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-farm/platform-specific-configurations/mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ else
if [ "${ARCHITECTURE}" == "x64" ]; then
# We can only target 10.9 on intel macs
export cxx_flags_bucket="${cxx_flags_bucket} -mmacosx-version-min=10.9"
elif [ "${ARCHITECTURE}" == "aarch64" ]; then
elif [[ "${MACHINEARCHITECTURE}" == "x64" ]] && [[ "${ARCHITECTURE}" == "aarch64" ]]; then
export CONFIGURE_ARGS_FOR_ANY_PLATFORM="${CONFIGURE_ARGS_FOR_ANY_PLATFORM} --openjdk-target=aarch64-apple-darwin"
fi
fi
Expand Down

0 comments on commit 99bfbf3

Please sign in to comment.