From 1304129fa29ff5eb5af65340708834af6f9db7c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20Gro=C3=9F?= Date: Sun, 23 Jul 2023 19:12:25 +0200 Subject: [PATCH] Don't try to build with crashpad on aarch64 Linux. Google currently doesn't support building crashpad on or for aarch64 Linux. --- cmake/macros/AddCrashpad.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/macros/AddCrashpad.cmake b/cmake/macros/AddCrashpad.cmake index 684c842ea2..7429094b0d 100644 --- a/cmake/macros/AddCrashpad.cmake +++ b/cmake/macros/AddCrashpad.cmake @@ -27,6 +27,11 @@ macro(add_crashpad) set(CMAKE_BACKTRACE_TOKEN $ENV{CMAKE_BACKTRACE_TOKEN}) endif() + if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64") + message(STATUS "Checking crashpad config - Linux aarch64 is not supported by crashpad, disabled.") + set(USE_CRASHPAD FALSE) + endif() + if (USE_CRASHPAD) message(STATUS "Checking crashpad config - enabled.") get_property(CRASHPAD_CHECKED GLOBAL PROPERTY CHECKED_FOR_CRASHPAD_ONCE)