commit | 93ef72d2836ae001cca3b923ec68b9e691af9908 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Tue Feb 24 17:13:12 2015 -0800 |
committer | Colin Cross <ccross@android.com> | Wed Mar 04 13:27:30 2015 -0800 |
tree | 9419fecabafcba1ce90175db5fefb4adf1989917 | |
parent | 11e3b0d0006609e3835f4aa04f7cd7f6039239e8 [diff] |
Don't fail cleanup when a file has turned into a directory If .ninja_log contains an entry that used to be a file but is now a non-empty directory the os.Remove call will fail. Silently ignore this error, if the files in the directory are abandoned the directory will be cleaned up when the files are removed.
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.