Skip to content

Commit

Permalink
[Android] Enable ARMv8-A crypto instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenCWills committed Jan 3, 2022
1 parent 41eb9ae commit 0268dc4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 0268dc4

Please sign in to comment.