Disable SSE on arm;

Currently we turn off SSE based on the OS (Android or Emscripten),
but this causes a build error on non-android arm CPUs.  Now we
correctly look at the CPU architecture.
This commit is contained in:
bjorn 2019-04-05 00:38:26 -07:00
parent a28b333899
commit 94f112dea3
1 changed files with 4 additions and 2 deletions

View File

@ -62,7 +62,6 @@ if(EMSCRIPTEN)
set(LOVR_USE_WEBVR ON)
set(LOVR_USE_OPENVR OFF)
set(LOVR_USE_OCULUS OFF)
set(LOVR_USE_SSE OFF)
set(LOVR_ENABLE_THREAD OFF)
elseif(ANDROID)
set(LOVR_USE_OPENVR OFF)
@ -70,7 +69,6 @@ elseif(ANDROID)
set(LOVR_USE_DESKTOP_HEADSET OFF)
set(LOVR_USE_OCULUS_MOBILE ON)
set(LOVR_USE_LUAJIT OFF) # Until buildvm re-invoke works
set(LOVR_USE_SSE OFF) # Assume ARM. Technically wrong on Android X86?
set(LOVR_BUILD_SHARED ON) # Android has only "activities"
elseif(UNIX)
if(APPLE)
@ -79,6 +77,10 @@ elseif(UNIX)
find_package(PkgConfig)
endif()
if(EMSCRIPTEN OR ${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm")
set(LOVR_USE_SSE OFF)
endif()
# PhysicsFS
if(LOVR_ENABLE_FILESYSTEM)
if(LOVR_SYSTEM_PHYSFS)