From 81fb1244183e2d2dcaa9c486c82a081f0b8d10ff Mon Sep 17 00:00:00 2001 From: cfstras Date: Sat, 13 Feb 2021 15:18:56 +0100 Subject: FIX(build): disable overlay on ARM macs Mach_override, used for dynamic code replacement in overlay, does not support arm (at all). Until we have a different implementation, we disable it on ARM macs. --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index b5769c668..8d09366fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -111,6 +111,13 @@ if(g15 AND WIN32) add_subdirectory(g15helper) endif() +if(APPLE AND CMAKE_SYSTEM_PROCESSOR MATCHES "arm64") + # mach_override doesn't support ARM + # https://github.com/rentzsch/mach_override/issues/6 + set(overlay OFF CACHE BOOL "" FORCE) + message(STATUS "Disabling the overlay on ARM macOS") +endif() + if(overlay AND client) if(WIN32) add_subdirectory(overlay) -- cgit v1.2.3