From 079636a07820e8e397745012201c87ac9bd51745 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Wed, 22 Nov 2023 15:08:08 -0800 Subject: [PATCH] build: adjust for Windows ARM64 Windows ARM64 uses a different ASM variant. The assembly is already correct but the CMake setup for the variant was not. This corrects that to enable building crashpad for Windows ARM64. Beyond this change, an update to zlib is required. --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 88e14d2dc..c0ea5b4b1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,7 +50,11 @@ function(crashpad_install_dev) endfunction() if(WIN32) - enable_language(ASM_MASM) + if(CMAKE_SYSTEM_PROCESSOR MATCHES ARM64) + enable_language(ASM_MARMASM) + else() + enable_language(ASM_MASM) + endif() if(MINGW) find_program(JWASM_FOUND jwasm)