Skip to content

Commit

Permalink
HADOOP-19238. Fix create-release script for arm64 based MacOS (#6962)
Browse files Browse the repository at this point in the history
Contributed by Mukund Thakur
  • Loading branch information
mukund-thakur authored Jul 29, 2024
1 parent a5806a9 commit 038636a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev-support/bin/create-release
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ function set_defaults
DOCKERRAN=false

CPU_ARCH=$(echo "$MACHTYPE" | cut -d- -f1)
if [ "$CPU_ARCH" = "aarch64" ]; then
if [[ "$CPU_ARCH" = "aarch64" || "$CPU_ARCH" = "arm64" ]]; then
DOCKERFILE="${BASEDIR}/dev-support/docker/Dockerfile_aarch64"
fi

Expand Down Expand Up @@ -514,7 +514,7 @@ function dockermode

# we always force build with the OpenJDK JDK
# but with the correct version
if [ "$CPU_ARCH" = "aarch64" ]; then
if [[ "$CPU_ARCH" = "aarch64" || "$CPU_ARCH" = "arm64" ]]; then
echo "ENV JAVA_HOME /usr/lib/jvm/java-${JVM_VERSION}-openjdk-arm64"
else
echo "ENV JAVA_HOME /usr/lib/jvm/java-${JVM_VERSION}-openjdk-amd64"
Expand Down

0 comments on commit 038636a

Please sign in to comment.