Skip to content

Commit 7ff7e06

Browse files
committed
Support 16KB page alignment and fix warning typo
- Enforce 16KB ELF segment alignment for Android 15+ compatibility. - Correct typo in `-Wno-gnu-string-literal-operator-template` warning flag.
1 parent ffea280 commit 7ff7e06

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ subprojects {
109109
listOf(
110110
"-DCMAKE_EXPORT_COMPILE_COMMANDS=ON",
111111
"-DVECTOR_ROOT=${rootDir.absolutePath}",
112+
// Enforce 16 KB page size alignment for Android 15+ compatibility
113+
"-DCMAKE_SHARED_LINKER_FLAGS=-Wl,-z,max-page-size=16384",
114+
"-DCMAKE_EXE_LINKER_FLAGS=-Wl,-z,max-page-size=16384",
112115
)
113116

114117
externalNativeBuild {

native/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ set(IGNORED_WARNINGS
1313
-Wno-c99-extensions
1414
-Wno-extra-semi
1515
-Wno-gnu-flexible-array-initializer
16-
-Wno-gnu-string-literal-operator-templat
16+
-Wno-gnu-string-literal-operator-template
1717
-Wno-gnu-zero-variadic-macro-arguments
1818
-Wno-variadic-macros
1919
-Wno-zero-length-array

0 commit comments

Comments
 (0)