pw_toolchain: Introduce RuntimeInitGlobal - Introduce RuntimeInitGlobal, a wrapper for global variables that should never be constant initialized. - Update NoDestructor to allow constant initialization. If constant initialization is not desirable, use RuntimeInitGlobal. - Add a section to the docs describing the benefits and pitfalls of constant initialzation. - Enable layering_check for pw_toolchain. Change-Id: I56c5c5828e288279ce8423cfa0319aa3efb013c8 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/263875 Reviewed-by: Armando Montanez <amontanez@google.com> Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com> Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> Commit-Queue: Wyatt Hepler <hepler@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.