diff --git a/android/build.gradle b/android/build.gradle index f753b826f..243f7113a 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -211,7 +211,7 @@ android { buildConfigField "boolean", "IS_INTERNAL_BUILD", 'true' ndk { - abiFilters 'x86', 'armeabi-v7a', 'arm64-v8a' + abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a' } externalNativeBuild { diff --git a/android/third-party/Folly/CMakeLists.txt b/android/third-party/Folly/CMakeLists.txt index d235e864c..351206bdc 100644 --- a/android/third-party/Folly/CMakeLists.txt +++ b/android/third-party/Folly/CMakeLists.txt @@ -47,6 +47,11 @@ add_compile_options( -Wno-return-type -Wno-tautological-constant-compare ) + +if (CMAKE_ANDROID_ARCH_ABI STREQUAL "x86_64") + add_compile_options(-mpclmul) +endif() + file(GLOB SRC_FILES ${FOLLY_DIR}/portability/*.cpp ${FOLLY_DIR}/io/async/ssl/*.cpp ${FOLLY_DIR}/io/async/*.cpp