Skip to content

Commit d19c731

Browse files
committed
feat(android): support 16k page
1 parent d9021a1 commit d19c731

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

android/sdk/gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,15 @@ INCLUDE_ABI_X86_64=false
7878
#
7979
# The following prebuilt V8 versions are available:
8080
# * 10.6.194 (recommend)
81+
# * 10.6.194.26(support Android 16k pages)
8182
# * 9.8.177.13
8283
# * 7.7.299.17 (minimum size without inspector features, by [TBS X5 Team](https://x5.tencent.com/))
8384
# * 7.7.299.15 (minimum version)
8485
#
8586
# You can also specify the absolute path to the V8 component to use,
8687
# e.g. /opt/v8-component
8788
#
88-
V8_COMPONENT=10.6.194
89+
V8_COMPONENT=10.6.194.26
8990

9091
#
9192
# Whether to hide library symbols

android/sdk/src/main/jni/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ target_link_options(${PROJECT_NAME} PRIVATE
5050
"-Wl,--icf=safe")
5151
# endregion
5252

53+
# Support Android 16K Page
54+
target_link_options(${PROJECT_NAME} PRIVATE "-Wl,-z,max-page-size=16384")
55+
5356
# region core
5457
add_subdirectory(${PROJECT_ROOT_DIR}/core ${CMAKE_CURRENT_BINARY_DIR}/core)
5558
target_link_libraries(${PROJECT_NAME} PRIVATE core)

0 commit comments

Comments
 (0)