commit | 9342b43c9507b2c625fffeaa7633e5c1d92552d7 | [log] [tgz] |
---|---|---|
author | Yo Chiang <yochiang@google.com> | Thu Mar 05 19:45:49 2020 +0800 |
committer | Yo Chiang <yochiang@google.com> | Thu Mar 05 19:45:49 2020 +0800 |
tree | 17174a41979514ab78a62d0529edf019fe308f63 | |
parent | aa919ddcbb8ca5fb627b8d48cc4b2a82bdc6e5e8 [diff] |
bpmodify: fix os.Exit() shouldn't shadow panic() The `defer func() { os.Exit() }()` in main() method shadows panic(). Make the exit handler recover() from panic(), log the panic(), and then gracefully exit. Test: m bpmodify Change-Id: Icc89f8fce0b6096489baa0ba0f08c21d1ef623bc
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.