Skip to content

Commit

Permalink
Merge pull request #1977 from Sonicadvance1/extend_arch_check
Browse files Browse the repository at this point in the history
CMake: Extend AArch64 check to include arm64
  • Loading branch information
lioncash committed Sep 10, 2022
2 parents c987e1e + ce8175a commit a583ebe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -88,7 +88,7 @@ if (CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64")
set (X86_TOOLCHAIN_FILE "")
endif()

if (CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64")
if (CMAKE_SYSTEM_PROCESSOR MATCHES "^aarch64|^arm64|^armv8\.*")
set(_M_ARM_64 1)
add_definitions(-D_M_ARM_64=1)
endif()
Expand Down
2 changes: 1 addition & 1 deletion External/FEXCore/CMakeLists.txt
Expand Up @@ -9,7 +9,7 @@ if (CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mcx16")
endif()

if (CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64")
if (CMAKE_SYSTEM_PROCESSOR MATCHES "^aarch64|^arm64|^armv8\.*")
set(_M_ARM_64 1)
endif()

Expand Down

0 comments on commit a583ebe

Please sign in to comment.