commit | 1bcaf62b4cd836a894c67df2f353fa83ad386607 | [log] [tgz] |
---|---|---|
author | juliexxia <juliexxia@google.com> | Wed Jan 02 10:40:44 2019 -0800 |
committer | Copybara-Service <copybara-piper@google.com> | Wed Jan 02 10:42:24 2019 -0800 |
tree | eec794f284c3892b925d864c9c137129abe0883e | |
parent | 6e20cd2146a38bfee03efe23244f23b1fbb96bfe [diff] |
Attribute parameterize all starlark attribute transition implementation functions. The impl functions of these transitions currently take one argument but the final API calls for a second. For now, support both 1-param and 2-param transition impl functions to not break current users. Though this param looks like the attr param of the starlark rule `ctx` object, it's not exactly the same. For dependency-typed attributes, `ctx` can actually access the providers of those dependencies. For this attr object, we just see them as the representative labels. Current usage of transitions has no need to actually see providers so leaving as a TODO for now and we can reconsider when we find a use case. PiperOrigin-RevId: 227543951
{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.