commit | e8aae03888a44ee8d5264c3d8f6b3adaeb830df5 | [log] [tgz] |
---|---|---|
author | ccalvarin <ccalvarin@google.com> | Tue Aug 22 07:17:44 2017 +0200 |
committer | Damien Martin-Guillerez <dmarting@google.com> | Tue Aug 22 09:15:29 2017 +0200 |
tree | e058cbe207487dede4ade96d1770fbb503742ac6 | |
parent | 78ce3d14a0e1d45c4602ce09b6b6c0fa290383bc [diff] |
Add OptionDefinition layer between the @Option annotation and its fields and the options parser. Removes any direct reads of the annotation outside of OptionDefinition. This allows for fewer manual checks for the annotation's existence, unifies error wording, and paves the way for potentially generifying the OptionsParser to accept different @Option-equivalent annotations. Also allows for cleanup of duplicate code by giving @Option-specific operations a clear home, such as sorts and default logic. In followup changes, we can eliminate some unnecessarily complex caching by instead memoizing values in the OptionDefinition. This will have the positive side effect of making sure reads come from the cached values. RELNOTES: None. PiperOrigin-RevId: 166019075
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel only rebuilds what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
Scalable: Bazel helps you scale your organization, codebase and Continuous Integration system. It handles codebases of any size, in multiple repositories or a huge monorepo.
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
Follow our tutorials:
See CONTRIBUTING.md
Bazel is released in ‘Beta’. See the product roadmap to learn about the path toward a stable 1.0 release.