Check for immintrin.h before using it in SDL_cpuinfo.h

This commit is contained in:
Sam Lantinga
2017-12-11 12:00:12 -08:00
parent 1b16618b13
commit f1ec8a5f4c
6 changed files with 46 additions and 5 deletions

View File

@@ -580,6 +580,8 @@ if(ASSEMBLY)
endif()
endif()
check_include_file("immintrin.h" HAVE_IMMINTRIN_H)
if(ALTIVEC)
set(CMAKE_REQUIRED_FLAGS "-maltivec")
check_c_source_compiles("