mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 19:38:14 +00:00
cmake: use CMakePushCheckState while testing ARM NEON support
This commit is contained in:

committed by
Anonymous Maarten

parent
46d85fd5a4
commit
21f8e3ce04
@@ -962,7 +962,7 @@ if(SDL_ASSEMBLY)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(SDL_ARMNEON)
|
if(SDL_ARMNEON)
|
||||||
set(ORIG_CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS}")
|
cmake_push_check_state()
|
||||||
set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -x assembler-with-cpp")
|
set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -x assembler-with-cpp")
|
||||||
check_c_source_compiles("
|
check_c_source_compiles("
|
||||||
.text
|
.text
|
||||||
@@ -978,7 +978,7 @@ if(SDL_ASSEMBLY)
|
|||||||
pld [r0]
|
pld [r0]
|
||||||
vmovn.u16 d0, q0
|
vmovn.u16 d0, q0
|
||||||
" ARMNEON_FOUND)
|
" ARMNEON_FOUND)
|
||||||
set(CMAKE_REQUIRED_FLAGS "${ORIG_CMAKE_REQUIRED_FLAGS}")
|
cmake_pop_check_state()
|
||||||
|
|
||||||
if(ARMNEON_FOUND)
|
if(ARMNEON_FOUND)
|
||||||
set(HAVE_ARMNEON TRUE)
|
set(HAVE_ARMNEON TRUE)
|
||||||
|
Reference in New Issue
Block a user