Skip to content

Commit

Permalink
NDK 27 & Support 16kb page size for Android15 (#98)
Browse files Browse the repository at this point in the history
Summary:
## Motivation

#97

Updated ndk to 27, enabled flexible page size support

https://developer.android.com/guide/practices/page-sizes#compile-r27-higher

Pull Request resolved: #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
  • Loading branch information
brocollie08 authored and facebook-github-bot committed Sep 20, 2024
1 parent 72e44a2 commit cdd876d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ repositories {

android {
compileSdk 34
ndkVersion '26.1.10909125'
ndkVersion '27.1.12297006'

externalNativeBuild {
cmake {
Expand All @@ -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'
}
Expand Down

0 comments on commit cdd876d

Please sign in to comment.