Skip to content

Commit 7f9ece2

Browse files
AntonKozlovVladimir Kempik
authored and
Vladimir Kempik
committed
8264650: Cross-compilation to macos/aarch64
Reviewed-by: erikj
1 parent 0039c18 commit 7f9ece2

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
@@ -265,6 +265,14 @@ AC_DEFUN_ONCE([FLAGS_PRE_TOOLCHAIN],
265265
fi
266266
fi
267267
268+
if test "x$OPENJDK_TARGET_OS" = xmacosx; then
269+
if test "x$OPENJDK_TARGET_CPU" = xaarch64; then
270+
MACHINE_FLAG="$MACHINE_FLAG -arch arm64"
271+
elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
272+
MACHINE_FLAG="$MACHINE_FLAG -arch x86_64"
273+
fi
274+
fi
275+
268276
# FIXME: global flags are not used yet...
269277
# The "global" flags will *always* be set. Without them, it is not possible to
270278
# get a working compilation.

0 commit comments

Comments
 (0)