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