Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcfstras <cfstras@users.noreply.github.com>2021-02-13 17:18:56 +0300
committercfstras <cfstras@users.noreply.github.com>2021-02-17 20:15:12 +0300
commit81fb1244183e2d2dcaa9c486c82a081f0b8d10ff (patch)
tree32f3b4acf4c1291fdfb5de87a8ccb93202502862 /CMakeLists.txt
parent0a6dc57412f67e99df1f32cb992799111000dcca (diff)
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.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
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)