From cdd876d092cce80371f982007544f6806cf3838e Mon Sep 17 00:00:00 2001 From: sentony93 Date: Fri, 20 Sep 2024 00:24:56 -0700 Subject: [PATCH] NDK 27 & Support 16kb page size for Android15 (#98) Summary: ## Motivation https://github.com/facebookincubator/fbjni/issues/97 Updated ndk to 27, enabled flexible page size support https://developer.android.com/guide/practices/page-sizes#compile-r27-higher Pull Request resolved: https://github.com/facebookincubator/fbjni/pull/98 Test Plan: Built locally and checked alignment via test method [here](https://developer.android.com/guide/practices/page-sizes#test) as well as `objdump` on the binary Reviewed By: alanleedev Differential Revision: D63021463 Pulled By: cortinico fbshipit-source-id: d4415440836b138a76bc101320dbe4b98c32f3c7 --- build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 32c1ae3..8193b64 100644 --- a/build.gradle +++ b/build.gradle @@ -27,7 +27,7 @@ repositories { android { compileSdk 34 - ndkVersion '26.1.10909125' + ndkVersion '27.1.12297006' externalNativeBuild { cmake { @@ -53,7 +53,7 @@ android { externalNativeBuild { cmake { - arguments '-DANDROID_TOOLCHAIN=clang', '-DANDROID_STL=c++_shared' + arguments '-DANDROID_TOOLCHAIN=clang', '-DANDROID_STL=c++_shared', '-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON' targets 'fbjni' version '3.22.1' }