commit | afacc9cb688ce0198b1708222b219f0158bf1418 | [log] [tgz] |
---|---|---|
author | Ivo List <ilist@google.com> | Wed Nov 04 06:27:05 2020 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Nov 04 06:28:07 2020 -0800 |
tree | e5069a3f0c1ecad97a7add5ecc417de5a2979705 | |
parent | 65e818e65b4a8720a2dc3a15750d6d83bd961ed2 [diff] |
Use selects based on constraint_values in java_tools. This makes them consistent with platformization which works on OS and CPU constraints from @platforms. Flag --cpu=darwin maps on Bazel to macos+x86_64, internally --cpu=darwin_x86_64 is used. With platforms, those become a single config_setting. I didn't combine together other darwin config_settings (dropping cpu), because of possible combination macos+ppc. Closes #12410. PiperOrigin-RevId: 340636557
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel rebuilds only 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