cmake: Allow build system to disable loongarch intrinsics

This commit is contained in:
Anonymous Maarten
2023-02-26 00:35:57 +01:00
committed by Anonymous Maarten
parent 99b8313eb1
commit 46de6241d7
6 changed files with 52 additions and 36 deletions

View File

@@ -1020,6 +1020,14 @@ if(NOT HAVE_SSE3)
set(SDL_DISABLE_SSE3 1)
endif()
if(NOT HAVE_LSX)
set(SDL_DISABLE_LSX 1)
endif()
if(NOT HAVE_LASX)
set(SDL_DISABLE_LASX 1)
endif()
# TODO: Can't deactivate on FreeBSD? w/o LIBC, SDL_stdinc.h can't define
# anything.
if(SDL_LIBC)