From a632fa96eed08db64496e1a47221b40b36def6be Mon Sep 17 00:00:00 2001 From: Meng Weng Wong Date: Sun, 20 Feb 2022 21:11:24 +0800 Subject: [PATCH] Update configure.ac so the C runtime can build on Apple M1 target_cpu should match aarch64 as well as arm* --- src/runtime/c/configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/c/configure.ac b/src/runtime/c/configure.ac index d8e55c1645..d760970d76 100644 --- a/src/runtime/c/configure.ac +++ b/src/runtime/c/configure.ac @@ -43,7 +43,7 @@ case "$target_cpu" in [Define if lightning is targeting the sparc architecture]) ;; powerpc) cpu=ppc; AC_DEFINE(LIGHTNING_PPC, 1, [Define if lightning is targeting the powerpc architecture]) ;; - arm*) cpu=arm; AC_DEFINE(LIGHTNING_ARM, 1, + aarch* | arm*) cpu=arm; AC_DEFINE(LIGHTNING_ARM, 1, [Define if lightning is targeting the arm architecture]) ;; *) AC_MSG_ERROR([cpu $target_cpu not supported]) ;; esac