Merge pull request #244 from PatriceJiang/swappy-ndk-19

support ndk 19+
This commit is contained in:
江战 2022-04-08 20:13:32 +08:00 committed by GitHub
commit 9e98579fc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ endif()
message( STATUS "Building swappy_static to ${CMAKE_CURRENT_BINARY_DIR}/build" )
# Dex linking requires an extra option for later versions of clang lld
if (ANDROID_NDK_MAJOR GREATER 22)
if (ANDROID_NDK_MAJOR GREATER 18)
if ( ANDROID_NDK_ABI_NAME MATCHES "armeabi-v7a")
set (LINKER_TARGET_EMULATION_OPTION "-m" "armelf_linux_eabi")
elseif(ANDROID_NDK_ABI_NAME MATCHES "arm64-v8a")