Open dcharkes opened 2 days ago
Also possibly related https://github.com/flutter/flutter/issues/125090
Out of curiosity: Does Android's NDK compiler toolchain not automatically use 16 KB by-default? Or is this for handling older Android compiler toolchains that don't have that default yet?
Related: https://github.com/dart-lang/native/issues/1608
Out of curiosity: Does Android's NDK compiler toolchain not automatically use 16 KB by-default? Or is this for handling older Android compiler toolchains that don't have that default yet?
NDK r27 does with this flag set: -DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON
Out of curiosity: Does Android's NDK compiler toolchain not automatically use 16 KB by-default? Or is this for handling older Android compiler toolchains that don't have that default yet?
We're currently still on r26b on the CI here:
Also flutter_tools is at 26 at the moment:
If you invoke 27 or up directly (not via Groovy, Kotlin, or Application.mk
) it also requires passing the flag:
https://developer.android.com/guide/practices/page-sizes#other-build-systems
Bumping the version on the CI here:
Android 15 has the support to require dylib elf sections to be 16kb aligned.
We should probably have a default flag for this in
package:native_toolchain_c
so that packages usingflutter create --template package_ffi
will work out of the box for Android 15 devices with 16kb memory pages.Context: