Skip to content

Commit 2491e37

Browse files
committed
build: Use new 16 KB page alignment on 64-bit Android
1 parent bb7641e commit 2491e37

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/BlocksRuntime/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ if(LINKER_SUPPORTS_BUILD_ID)
2626
target_link_options(BlocksRuntime PRIVATE "LINKER:--build-id=sha1")
2727
endif()
2828

29+
if(ANDROID)
30+
target_link_options(BlocksRuntime PRIVATE "LINKER:-z,max-page-size=16384")
31+
endif()
32+
2933
add_library(BlocksRuntime::BlocksRuntime ALIAS BlocksRuntime)
3034

3135
install(FILES Block.h

src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ if(WIN32)
105105
elseif(ANDROID)
106106
target_compile_options(dispatch PRIVATE
107107
-U_GNU_SOURCE)
108+
target_link_options(dispatch PRIVATE "LINKER:-z,max-page-size=16384")
108109
endif()
109110
if(DISPATCH_ENABLE_ASSERTS)
110111
target_compile_definitions(dispatch PRIVATE

0 commit comments

Comments
 (0)