diff --git a/android/build.gradle b/android/build.gradle index e8d3099ac8..a05779baae 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -142,6 +142,7 @@ android { '-DANDROID_PLATFORM=android-16', '-DANDROID_TOOLCHAIN=clang', '-DANDROID_CPP_FEATURES=', + '-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON', '-DANDROID_STL=c++_static' } } @@ -161,6 +162,7 @@ android { '-DANDROID_CPP_FEATURES=', '-DANDROID_STL=c++_static', '-DANDROID_ARM_NEON=TRUE', + '-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON', '-DGOLD=TRUE' } } @@ -180,6 +182,7 @@ android { '-DANDROID_TOOLCHAIN=clang', '-DANDROID_CPP_FEATURES=', '-DANDROID_STL=c++_static', + '-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON', '-DANDROID_LEGACY=TRUE' } } @@ -200,6 +203,7 @@ android { '-DANDROID_CPP_FEATURES=', '-DANDROID_STL=c++_static', '-DANDROID_ARM_NEON=TRUE', + '-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON', '-DOPENXR=TRUE', '-DANDROID_LEGACY=TRUE' } diff --git a/android/jni/Application.mk b/android/jni/Application.mk index 9282f31bd4..1dd906f0a1 100644 --- a/android/jni/Application.mk +++ b/android/jni/Application.mk @@ -2,4 +2,5 @@ APP_STL := c++_static APP_PLATFORM := android-9 APP_ABI := arm64-v8a armeabi-v7a x86_64 APP_GNUSTL_CPP_FEATURES := exceptions +APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true NDK_TOOLCHAIN_VERSION := clang