Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8264650: Cross-compilation to macos/aarch64
Reviewed-by: burban
Backport-of: 7f9ece2
  • Loading branch information
Vladimir Kempik committed Feb 8, 2022
1 parent 562e4fe commit afb94ae
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions make/autoconf/flags.m4
Expand Up @@ -258,6 +258,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.
Expand Down

1 comment on commit afb94ae

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.