Skip to content

Commit 8fc5e0e

Browse files
GeoffroyAubeyTautvydasZilys
authored andcommitted
Add aarch64 macos compilation
Signed-off-by: Tautvydas Žilys <[email protected]>
1 parent 1a7240b commit 8fc5e0e

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

configure.ac

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,9 @@ case "$host" in
355355
platform_ios=yes
356356
has_dtrace=no
357357
;;
358+
aarch64*-darwinmacos*)
359+
support_boehm=no
360+
;;
358361
aarch64*-darwin*)
359362
platform_ios=yes
360363
;;
@@ -3434,6 +3437,16 @@ case "$host" in
34343437
ACCESS_UNALIGNED="no"
34353438
CPPFLAGS="$CPPFLAGS -D__ARM_EABI__"
34363439
;;
3440+
aarch64-*-darwinmacos*)
3441+
TARGET_SYS=MACOS
3442+
TARGET=ARM64
3443+
arch_target=arm64
3444+
boehm_supported=false
3445+
AOT_SUPPORTED="yes"
3446+
BTLS_SUPPORTED=yes
3447+
BTLS_PLATFORM=aarch64
3448+
AC_CHECK_HEADER(stdalign.h,[],[BTLS_SUPPORTED=no])
3449+
;;
34373450
aarch64-*)
34383451
# https://lkml.org/lkml/2012/7/15/133
34393452
TARGET=ARM64
@@ -3727,8 +3740,8 @@ if test "x$target_mach" = "xyes"; then
37273740
CPPFLAGS_FOR_LIBGC="$CPPFLAGS_FOR_LIBGC -DTARGET_WATCHOS"
37283741
CFLAGS_FOR_LIBGC="$CFLAGS_FOR_LIBGC -DTARGET_WATCHOS"
37293742
BTLS_SUPPORTED=no
3730-
elif test "x$TARGET" = "xARM" -o "x$TARGET" = "xARM64"; then
3731-
AC_DEFINE(TARGET_IOS,1,[The JIT/AOT targets iOS])
3743+
elif test "x$TARGET" = "xARM" -o "x$TARGET" = "xARM64" -a "x$TARGET_SYS" != "xMACOS"; then
3744+
AC_DEFINE(TARGET_IOS,1,[The JIT/AOT targets iOS])
37323745
CPPFLAGS_FOR_LIBGC="$CPPFLAGS_FOR_LIBGC -DTARGET_IOS"
37333746
CFLAGS_FOR_LIBGC="$CFLAGS_FOR_LIBGC -DTARGET_IOS"
37343747
BTLS_SUPPORTED=no

0 commit comments

Comments
 (0)