commit | c3d731258a343d4b52dd91b873498a6d080e61f4 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Fri Aug 05 17:19:36 2016 -0700 |
committer | Colin Cross <ccross@android.com> | Fri Aug 05 17:19:36 2016 -0700 |
tree | 3ba61e8353a63db77d92909ef4dff251f13abce5 | |
parent | aec881da86b7965a5c165f59117cc94bfb097717 [diff] |
Support nil pointers to structs in properties Allow primary builders to reduce allocations of empty structures by allowing nil pointers to concrete struct types. Property readers will not recurse into nil pointers, property writers will replace the nil pointer with a pointer to the zero value of the pointer element type. Allows a >50% primary builder time improvement with a trivial change in Soong. Change-Id: If6ad674bf7bf2a694c335378a074643a97d3c50b
Blueprint is a meta-build system that reads in Blueprints files that describe modules that need to be built, and produces a Ninja manifest describing the commands that need to be run and their dependencies. Where most build systems use built-in rules or a domain-specific language to describe the logic for converting module descriptions to build rules, Blueprint delegates this to per-project build logic written in Go. For large, heterogenous projects this allows the inherent complexity of the build logic to be maintained in a high-level language, while still allowing simple changes to individual modules by modifying easy to understand Blueprints files.