From 0268dc4285c4f4072b49a5548e9f7c66bfdb81c1 Mon Sep 17 00:00:00 2001 From: staphen Date: Mon, 3 Jan 2022 15:46:54 -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 be00ded..9721237 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -698,6 +698,9 @@ if(BUILD_SHARED_LIB) 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})