fixup! common: Ported over Dolphin's code for x86 CPU capability detection.

This commit is contained in:
bunnei 2015-07-08 23:10:20 -04:00
parent 5464a9edce
commit a7e175be03

View File

@ -64,7 +64,7 @@ endif()
# Architecture detection and arch specific settings # Architecture detection and arch specific settings
message(${CMAKE_SYSTEM_PROCESSOR}) message(${CMAKE_SYSTEM_PROCESSOR})
# Platform-agnostic definition to check if we are on x86/x64 # Platform-agnostic definition to check if we are on x86/x64
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^x86" OR if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^x86" OR
${CMAKE_SYSTEM_PROCESSOR} MATCHES "i.86" OR ${CMAKE_SYSTEM_PROCESSOR} MATCHES "i.86" OR
@ -72,7 +72,7 @@ if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^x86" OR
APPLE) APPLE)
set(_M_X86 1) set(_M_X86 1)
add_definitions(-D_M_X86=1) add_definitions(-D_M_X86=1)
if(_ARCH_64) if(_ARCH_64)
set(_M_X86_64 1) set(_M_X86_64 1)
add_definitions(-D_M_X86_64=1) add_definitions(-D_M_X86_64=1)