diff --git a/unittests/Support/MemoryTest.cpp b/unittests/Support/MemoryTest.cpp index af33dc32c81..6e5f7472e45 100644 --- a/unittests/Support/MemoryTest.cpp +++ b/unittests/Support/MemoryTest.cpp @@ -41,6 +41,8 @@ bool IsMPROTECT() { err(EXIT_FAILURE, "sysctl"); return !!(paxflags & CTL_PROC_PAXFLAGS_MPROTECT); +#elif defined(__APPLE__) && defined(__aarch64__) + return true; #else return false; #endif