From 03ffa61a048d022f2d0dd09a2beff941d8572396 Mon Sep 17 00:00:00 2001 From: staphen Date: Mon, 3 Jan 2022 17:50:03 -0500 Subject: [PATCH] [Android] Enable ARMv8-A crypto instructions --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 98873d1..c1b00e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -681,6 +681,9 @@ if(BUILD_SHARED_LIB) endif() if(BUILD_ANDROID) target_link_libraries(${DYNAMIC_LIB_NAME} android log) + if(CMAKE_ANDROID_ARCH_ABI STREQUAL "arm64-v8a") + target_compile_options(zto_pic PRIVATE -march=armv8-a+crypto) + endif() endif() if(NOT ZTS_DISABLE_CENTRAL_API) target_link_libraries(${DYNAMIC_LIB_NAME} ${CURL_LIBRARIES})