Skip to content
Permalink
Browse files

8264650: Cross-compilation to macos/aarch64

Reviewed-by: erikj
  • Loading branch information
AntonKozlov authored and Vladimir Kempik committed Apr 5, 2021
1 parent 0039c18 commit 7f9ece23dc62e911c78be3fa4b8e297e3ac90bd1
Showing with 8 additions and 0 deletions.
  1. +8 −0 make/autoconf/flags.m4
@@ -265,6 +265,14 @@ AC_DEFUN_ONCE([FLAGS_PRE_TOOLCHAIN],
fi
fi
if test "x$OPENJDK_TARGET_OS" = xmacosx; then
if test "x$OPENJDK_TARGET_CPU" = xaarch64; then
MACHINE_FLAG="$MACHINE_FLAG -arch arm64"
elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
MACHINE_FLAG="$MACHINE_FLAG -arch x86_64"
fi
fi
# FIXME: global flags are not used yet...
# The "global" flags will *always* be set. Without them, it is not possible to
# get a working compilation.

1 comment on commit 7f9ece2

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 7f9ece2 Apr 5, 2021

Please sign in to comment.