commit | 10b54db7cc3294726ea7324ab63efc85858e3725 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Wed Mar 11 14:40:30 2015 -0700 |
committer | Colin Cross <ccross@android.com> | Wed Mar 11 16:09:00 2015 -0700 |
tree | cb8239ce5a814e7861fc2aec7667ccd0b0e4b69f | |
parent | 62e681a288e8a047ccd5d03f676c7655731c9a7c [diff] |
Fix panic when dependency cycle includes the first module visited The cycle check can panic if the first call to check happens to land on the first module in a cycle. Print the cycle instead of panicking. Change-Id: I6fc1c66dcc37b1eb6b11b9e65343452af3c8538d
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.