commit | deb028e3fb30b4e2953df16f35ab1f55a08ea8fa | [log] [tgz] |
---|---|---|
author | juliexxia <juliexxia@google.com> | Sat Jan 05 17:19:21 2019 -0800 |
committer | Copybara-Service <copybara-piper@google.com> | Sat Jan 05 17:21:18 2019 -0800 |
tree | 5e4935fdcaabb5869a4776c7294f4fbaa7355dbe | |
parent | f5bbabe769cd0a52b3d73fb01685e75489564d24 [diff] |
Implement starlark rule class transitions. Add the `cfg` parameter to rule definition which can take transitions created by the transition() fxn. Split out common work for attribute and rule transitions into a util class and rename attribute transition work to distinguish from rule transition work. Prohibit build settings targets from transitioning themselves since there is no use case for this (yet). For now, prohibit rule transitions from accessing *any* attributes that are resolved through selects. This is an overly restrictive way to deal with the potential cycles caused by attribute-parameterized rule transitions and configurable attributes. But will fine tuned in follow up CLs to prevent this CL from being too large. PiperOrigin-RevId: 228017175
{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 solution. 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.