Minor AArch64 support changes

This commit is contained in:
Nekotekina 2022-05-04 15:51:58 +03:00 committed by Ivan
parent 6501374a34
commit a2bfd5fcfc
4 changed files with 15 additions and 9 deletions

View file

@ -11,9 +11,9 @@ set(USE_SANITIZERS FALSE CACHE BOOL "Dont't use sanitizers")
add_subdirectory(cubeb EXCLUDE_FROM_ALL)
add_library(3rdparty::cubeb ALIAS cubeb)
if (CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm|ARM)")
if (CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm|ARM|aarch64|AArch64|Aarch64)")
target_compile_definitions(speex PUBLIC
_USE_NEON
#_USE_NEON
)
elseif (CMAKE_SYSTEM_PROCESSOR MATCHES "^(x86|X86|amd64|AMD64|em64t|EM64T)")
target_compile_definitions(speex PUBLIC

1
3rdparty/llvm.cmake vendored
View file

@ -5,6 +5,7 @@ if(WITH_LLVM)
if(BUILD_LLVM_SUBMODULE)
message(STATUS "LLVM will be built from the submodule.")
set(LLVM_TARGETS_TO_BUILD "AArch64;X86")
option(LLVM_BUILD_RUNTIME OFF)
option(LLVM_BUILD_TOOLS OFF)
option(LLVM_INCLUDE_BENCHMARKS OFF)