Skip to content

Commit afb94ae

Browse files
author
Vladimir Kempik
committed
8264650: Cross-compilation to macos/aarch64
Reviewed-by: burban Backport-of: 7f9ece2
1 parent 562e4fe commit afb94ae

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

make/autoconf/flags.m4

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,14 @@ AC_DEFUN_ONCE([FLAGS_PRE_TOOLCHAIN],
258258
fi
259259
fi
260260
261+
if test "x$OPENJDK_TARGET_OS" = xmacosx; then
262+
if test "x$OPENJDK_TARGET_CPU" = xaarch64; then
263+
MACHINE_FLAG="$MACHINE_FLAG -arch arm64"
264+
elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
265+
MACHINE_FLAG="$MACHINE_FLAG -arch x86_64"
266+
fi
267+
fi
268+
261269
# FIXME: global flags are not used yet...
262270
# The "global" flags will *always* be set. Without them, it is not possible to
263271
# get a working compilation.

0 commit comments

Comments
 (0)