Enables ARMv7 build options entirely on ARM.

We only support ARMv7 with Dolphin, so if we are building on ARM have our target be for armv7-a.
This commit is contained in:
Ryan Houdek 2014-11-14 15:14:53 +00:00
parent b0becf7af8
commit eb7543d139
1 changed files with 1 additions and 3 deletions

View File

@ -153,9 +153,7 @@ if(NOT ENABLE_GENERIC)
set(_M_ARM 1) set(_M_ARM 1)
set(_M_ARM_32 1) set(_M_ARM_32 1)
add_definitions(-D_M_ARM=1 -D_M_ARM_32=1) add_definitions(-D_M_ARM=1 -D_M_ARM_32=1)
if(${ANDROID_NDK_ABI_NAME} MATCHES "armeabi-v7a") add_definitions(-marm -march=armv7-a)
add_definitions(-marm -march=armv7-a)
endif()
elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64") elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64")
# This option only applies to 64bit ARM # This option only applies to 64bit ARM
set(_M_ARM 1) set(_M_ARM 1)