From eb9b773e9f6865c09685ae4488cec1868f381538 Mon Sep 17 00:00:00 2001 From: Mo Chen Date: Thu, 4 Aug 2022 16:13:52 -0500 Subject: [PATCH] Fix compile on M1 Mac Add arm64 to the list of known stack growth directions. --- iocore/eventsystem/UnixEventProcessor.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iocore/eventsystem/UnixEventProcessor.cc b/iocore/eventsystem/UnixEventProcessor.cc index 2217d61153e..bbe17f17709 100644 --- a/iocore/eventsystem/UnixEventProcessor.cc +++ b/iocore/eventsystem/UnixEventProcessor.cc @@ -140,7 +140,8 @@ class ThreadInitByFunc : public Continuation void ThreadAffinityInitializer::setup_stack_guard(void *stack, int stackguard_pages) { -#if !(defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__mips__)) +#if !(defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__arm64__) || defined(__aarch64__) || \ + defined(__mips__)) #error Unknown stack growth direction. Determine the stack growth direction of your platform. // If your stack grows upwards, you need to change this function and the calculation of stack_begin in do_alloc_stack. #endif