From 99bfbf3907704db9bbd10d1bfa08c9c8e10fc42d Mon Sep 17 00:00:00 2001 From: George Adams Date: Thu, 22 Aug 2024 12:53:08 +0100 Subject: [PATCH] only specify --openjdk-target when cross compiling --- build-farm/platform-specific-configurations/mac.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-farm/platform-specific-configurations/mac.sh b/build-farm/platform-specific-configurations/mac.sh index 4fe9d8744..248842196 100755 --- a/build-farm/platform-specific-configurations/mac.sh +++ b/build-farm/platform-specific-configurations/mac.sh @@ -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