commit | 526e02f0c68dc1cd0545ffc8ea51db577faa7575 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Thu Jun 21 13:31:53 2018 -0700 |
committer | Colin Cross <ccross@android.com> | Thu Jun 21 13:41:42 2018 -0700 |
tree | 935bda9639c4eff6d3c58073671f73f6261813e8 | |
parent | cd0310f22560ac38270cdd6f22aa5123fe5e384b [diff] |
Prevent duplicate visit calls in WalkDeps WalkDeps was following every possible path through the dependency tree, which can be enormous. Modify it to only call visit for any particular (child, parent) pair once for each direct dependency by not recursing into child if visitDown returns true but child has already been visited. Test: TestWalkDeps, TestWalkDepsDuplicates Change-Id: Ieef28399bd10e744417cdeb661dfa04fbeb4ec60
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.