From f2bc81d163f3134fc7de9edc221e5eea34ee0098 Mon Sep 17 00:00:00 2001 From: KONNO Kazuhiro Date: Tue, 14 May 2024 19:51:55 +0900 Subject: [PATCH] Show error message for --with-cmake=no on AArch64 macOS. OpenJ9 build for AArch64 macOS requires Cmake. This commit shows an error message when --with-cmake=no is specified on the platform. Signed-off-by: KONNO Kazuhiro --- closed/autoconf/custom-hook.m4 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/closed/autoconf/custom-hook.m4 b/closed/autoconf/custom-hook.m4 index 21743dba2f9..e7496ea73f4 100644 --- a/closed/autoconf/custom-hook.m4 +++ b/closed/autoconf/custom-hook.m4 @@ -75,6 +75,12 @@ AC_DEFUN([OPENJ9_CONFIGURE_CMAKE], if test "x$OMR_MIXED_REFERENCES_MODE" != xoff ; then AC_MSG_ERROR([[--with-mixedrefs=[static|dynamic] requires --with-cmake]]) fi + + if test "x$OPENJ9_CPU" = xaarch64 ; then + if test "x$OPENJ9_BUILD_OS" = xosx ; then + AC_MSG_ERROR([AArch64 macOS build requires --with-cmake]) + fi + fi else OPENJ9_ENABLE_CMAKE=true if AS_EXECUTABLE_P(["$with_cmake"]) ; then