diff options
| author | levlam <levlam@telegram.org> | 2025-06-16 14:38:54 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2025-06-16 14:38:54 +0300 |
| commit | 1b011986f5e08d863cc5bc31093a23a8ae3a7949 (patch) | |
| tree | f8b01bcc85b255a822cbf008ecb6ae7a2774a598 /example | |
| parent | 285bb4d9bd87b8ecd69fc869216b6f76326fe775 (diff) | |
Always enable 16KB alignment for 64-bit Android.
Diffstat (limited to 'example')
| -rw-r--r-- | example/android/CMakeLists.txt | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/example/android/CMakeLists.txt b/example/android/CMakeLists.txt index ee0e803a1..949a6e4b2 100644 --- a/example/android/CMakeLists.txt +++ b/example/android/CMakeLists.txt @@ -41,11 +41,6 @@ if (CMAKE_CROSSCOMPILING) endif() target_compile_definitions(tdjni PRIVATE PACKAGE_NAME="org/drinkless/tdlib") - if (${ANDROID_ABI} STREQUAL "arm64-v8a" OR ${ANDROID_ABI} STREQUAL "x86_64") - # Enable 16 KB ELF alignment. - target_link_options(tdjni PRIVATE "-Wl,-z,max-page-size=16384") - endif() - add_custom_command(TARGET tdjni POST_BUILD COMMAND ${CMAKE_COMMAND} -E rename $<TARGET_FILE:tdjni> $<TARGET_FILE:tdjni>.debug COMMAND ${CMAKE_STRIP} --strip-debug --strip-unneeded $<TARGET_FILE:tdjni>.debug -o $<TARGET_FILE:tdjni>) |
