mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
cmake: test for lsx and lasx intrinsics for loongarch
This commit is contained in:
parent
edb75bc29e
commit
dcd1252368
2 changed files with 38 additions and 0 deletions
|
|
@ -32,6 +32,8 @@ function(check_cpu_architecture ARCH VARIABLE)
|
|||
_internal_check_cpu_architecture("defined(__arm__) || defined(_M_ARM)" arm32 ${VARIABLE})
|
||||
elseif(ARCH STREQUAL "arm64")
|
||||
_internal_check_cpu_architecture("defined(__aarch64__) || defined(_M_ARM64)" arm64 ${VARIABLE})
|
||||
elseif(ARCH STREQUAL "loongarch64")
|
||||
_internal_check_cpu_architecture("defined(__loongarch64)" loongarch64 ${VARIABLE})
|
||||
else()
|
||||
message(WARNING "Unknown CPU architectures (${ARCH}).")
|
||||
set(${VARIABLE} FALSE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue