Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions source_common/compiler_helper.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,11 @@ macro(lgl_set_build_options BUILD_TARGET_NAME)
CONFIG_LOG=$<BOOL:${LGL_CONFIG_LOG}>
CONFIG_OPTIMIZE_DISPATCH=$<BOOL:${LGL_CONFIG_OPTIMIZE_DISPATCH}>)

# Force 16KB section alignment for compatibility with modern Android devices
# See https://developer.android.com/guide/practices/page-sizes
target_link_options(
${BUILD_TARGET_NAME} PRIVATE
$<$<PLATFORM_ID:Android>:-Wl,-z,max-page-size=16384>
$<$<PLATFORM_ID:Android>:-Wl,-z,common-page-size=16384>)

endmacro()