mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 13:27:45 -07:00
CMake: CMAKE_SIZEOF_VOID_P must be 8 for an x86_64 build
This is an issue because CMAKE_SYSTEM_PROCESSOR is defined as the host processor when not cross-compiling, and building for Win32 doesn't count as cross-compiling.
This commit is contained in:
parent
f37c5f1f1c
commit
4a422dffaa
@ -166,7 +166,7 @@ if(ENABLE_GENERIC)
|
|||||||
message(STATUS "Warning! Building generic build!")
|
message(STATUS "Warning! Building generic build!")
|
||||||
set(_M_GENERIC 1)
|
set(_M_GENERIC 1)
|
||||||
add_definitions(-D_M_GENERIC=1)
|
add_definitions(-D_M_GENERIC=1)
|
||||||
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|amd64|AMD64")
|
elseif(_ARCH_64 AND CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|amd64|AMD64")
|
||||||
set(_M_X86 1)
|
set(_M_X86 1)
|
||||||
set(_M_X86_64 1)
|
set(_M_X86_64 1)
|
||||||
add_definitions(-D_M_X86=1)
|
add_definitions(-D_M_X86=1)
|
||||||
@ -180,7 +180,9 @@ elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
|
|||||||
# CRC instruction set is used in the CRC32 hash function
|
# CRC instruction set is used in the CRC32 hash function
|
||||||
check_and_add_flag(HAVE_ARCH_ARMV8 -march=armv8-a+crc)
|
check_and_add_flag(HAVE_ARCH_ARMV8 -march=armv8-a+crc)
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "You're building on an unsupported platform '${CMAKE_SYSTEM_PROCESSOR}'. Enable generic build if you really want a JIT-less binary.")
|
message(FATAL_ERROR "You're building on an unsupported platform: "
|
||||||
|
"'${CMAKE_SYSTEM_PROCESSOR}' with ${CMAKE_SIZEOF_VOID_P}-byte pointers."
|
||||||
|
" Enable generic build if you really want a JIT-less binary.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user