third_party.pigweed.src/pw_build_android
Andrew Harper 51ed6ec520 pw_build_android: Enable function dynamic alloc
Set the PW_FUNCTION_ENABLE_DYNAMIC_ALLOCATION define for Android builds.
This allows `pw::Function`s to exceed the inline size.

The motivation for setting this across the board is that components
built with dynamic allocation disabled (i.e.
PW_FUNCTION_ENABLE_DYNAMIC_ALLOCATION unset or set to 0) cannot be
linked against components with dynamic allocation enabled.

Since even the smallest Android environment is not nearly as constrained
as a typical embedded environment, the solution is to always set this
flag on Android.

Bug: 349352849
Test: Built Android locally.
Change-Id: I7209151c2508026258c23f931a5c12c64c733a1e
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/218219
Reviewed-by: Eli Lipsitz <elipsitz@google.com>
Reviewed-by: Carlos Chinchilla <cachinchilla@google.com>
Reviewed-by: Jonathon Reinhart <jrreinhart@google.com>
Commit-Queue: Andrew Harper <aharp@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
2024-06-26 16:52:08 +00:00
..
Android.bp pw_build_android: Enable function dynamic alloc 2024-06-26 16:52:08 +00:00
BUILD.gn
docs.rst pw_build_android: Enable function dynamic alloc 2024-06-26 16:52:08 +00:00
OWNERS