Skip to content

Commit

Permalink
Enable 16KB page size binaries for RN libraries + hermes (#1557) (#1557)
Browse files Browse the repository at this point in the history
Summary:
Original Author: [email protected]
Original Git: e3aec0f
Original Reviewed By: cortinico
Original Revision: D64446876

Pull Request resolved: #1557

X-link: facebook/react-native#47042

Add native build flags to support 16KB page size

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

Changelog:
[Android][Added] add cmake arguments to support 16KB page size for native libraries

Reviewed By: mattbfb

Differential Revision: D65787621

fbshipit-source-id: c230966f1cf536233c265c1c2dfecdf2d9a42ed6
  • Loading branch information
dannysu authored and facebook-github-bot committed Nov 14, 2024
1 parent 4064d36 commit 3f2ad14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions android/hermes/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ android {

externalNativeBuild {
cmake {
arguments "-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON"
arguments "-DHERMES_IS_ANDROID=True"
arguments "-DHERMES_FACEBOOK_BUILD=${rootProject.ext.facebookBuild}"
arguments "-DANDROID_STL=c++_shared"
Expand Down

0 comments on commit 3f2ad14

Please sign in to comment.