commit | 62e681a288e8a047ccd5d03f676c7655731c9a7c | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Wed Mar 11 14:36:03 2015 -0700 |
committer | Colin Cross <ccross@android.com> | Wed Mar 11 16:09:00 2015 -0700 |
tree | af418f1cba7e3563e3c0e48da86d0514c5b3d084 | |
parent | 969c70342ae4e47893226d47865abc6fc5a3cc2f [diff] |
Fix bug when copying slice to itself If proptools.CopyProperties is passed two values that point same slice then setting the destination slice to a new slice will overwrite the source slice, and the properties struct that is both the source and destination will have an empty slice. Copy into the new slice using a new reflect.Value, and then update the destination. Change-Id: I1bfcdc51e4278ea7c7ed81dafc928a5471219f05
Blueprint is a meta-build system that reads in Blueprints files that describe modules that need to be built, and produces a Ninja (http://martine.github.io/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 langauge 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.