From 2d247e3c11f14ba85662fc1d991945501eefa1d4 Mon Sep 17 00:00:00 2001 From: l3utterfly Date: Tue, 13 Jun 2023 02:05:08 +0800 Subject: [PATCH] removed NDK check for armv8 because we are passing options from the parent project instead --- CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8384f2acc..59140bb58 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() \ No newline at end of file +endif()