Skip to content

Commit

Permalink
Allow 16KB page sizes on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
kcat committed Feb 25, 2025
1 parent 4483e83 commit 5fa1973
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1321,6 +1321,12 @@ if(ALSOFT_EMBED_HRTF_DATA)
make_hrtf_header("Default HRTF.mhr" "default_hrtf")
endif()

# Set a 16KB page size for Android
if(ANDROID)
set(CPP_DEFS ${CPP_DEFS} __BIONIC_NO_PAGE_SIZE_MACRO)
set(LINKER_FLAGS ${LINKER_FLAGS} "-Wl,-z,max-page-size=16384")
endif()


if(ALSOFT_UTILS)
find_package(MySOFA)
Expand Down

0 comments on commit 5fa1973

Please sign in to comment.