removed NDK check for armv8 because we are passing options from the parent project instead

This commit is contained in:
l3utterfly 2023-06-13 02:05:08 +08:00
parent 25b3a83425
commit 2d247e3c11

View file

@ -341,10 +341,6 @@ if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm" OR ${CMAKE_SYSTEM_PROCESSOR} MATCHES
if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "armv8")
# Raspberry Pi 3, 4, Zero 2 (32-bit)
add_compile_options(-mfp16-format=ieee -mno-unaligned-access)
if(DEFINED ANDROID_NDK)
add_compile_options(-march=armv8.4a+dotprod)
endif()
endif()
endif()
elseif (${CMAKE_SYSTEM_PROCESSOR} MATCHES "^(x86_64|i686|AMD64)$")
@ -466,4 +462,4 @@ endif ()
if (LLAMA_BUILD_EXAMPLES)
add_subdirectory(examples)
add_subdirectory(pocs)
endif()
endif()