commit | c20adeac4b7ff9eb84b3dfe6df92c0fe4b31104a | [log] [tgz] |
---|---|---|
author | Dan Willemsen <dwillemsen@google.com> | Sat Aug 01 15:07:27 2015 -0700 |
committer | Dan Willemsen <dwillemsen@google.com> | Mon Aug 03 16:16:24 2015 -0700 |
tree | 607b23b0dcb890e3a2f720f876e4ccddb6369daa | |
parent | 421a6999499e6736256be5d78e6c7ab18260c939 [diff] |
Support go 1.5 The go compiler and linker changed in v1.5 -- to 'go tool compile' and 'go tool link' instead of 6g and 6l. Move the selection logic to bootstrap.bash, and have it use compile/link if 6g/6l are missing. This way the build.ninja.in will continue working with either go 1.4 or 1.5. Travis and the test suite will fail under 1.5, since the build.ninja.in is still generated with 1.4, and the function names in the comments differ between 1.4 and 1.5.
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.