Skip to content

Commit

Permalink
build: adjust for Windows ARM64
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
compnerd authored Nov 22, 2023
1 parent 3182e3b commit 079636a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 079636a

Please sign in to comment.