intrinsics: add lsx/lasx intrinsic headers when not disabled

__attribute__((target(xx))) is not supported by LoongArch64.
The following warning is emitted:
target attribute is not supported on this machine [-Wattributes]
This commit is contained in:
Anonymous Maarten
2023-03-30 04:00:48 +02:00
parent 94bca5a2a3
commit b99f380498
2 changed files with 9 additions and 10 deletions

View File

@@ -966,7 +966,6 @@ if(SDL_ASSEMBLY)
cmake_pop_check_state()
if(COMPILER_SUPPORTS_LSX AND HAVE_LSXINTRIN_H)
target_compile_options(sdl-build-options INTERFACE "-mlsx")
set(HAVE_LSX TRUE)
endif()
endif()
@@ -982,7 +981,6 @@ if(SDL_ASSEMBLY)
check_include_file("lasxintrin.h" HAVE_LASXINTRIN_H)
cmake_pop_check_state()
if(COMPILER_SUPPORTS_LASX AND HAVE_LASXINTRIN_H)
target_compile_options(sdl-build-options INTERFACE "-mlasx")
set(HAVE_LASX TRUE)
endif()
endif()