commit | 386b25b866bc2d68be6af04ad8ae40b0fd73a6e7 | [log] [tgz] |
---|---|---|
author | gregce <gregce@google.com> | Tue Oct 29 13:12:43 2019 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Oct 29 13:13:35 2019 -0700 |
tree | 809a51994d6f96b6e9cd905de6a74bc3fb0b3c35 | |
parent | 0c2fadce9d36d93dc9e3ac0c5e14f38bb2b33928 [diff] |
cquery --show_config_fragments: support user-defined options. Given: $ blaze cquery 'deps(//:mytarget)' --show_config_fragments=[direct|transitive] This includes as direct requirements: ? Starlark flags used in a rule's select() ? Starlark flags required by a Starlark rule's .bzl definition ? Android feature flags used in a rule's select() ? Android feature flags set by an android_binary ? Starlark rules providing FeatureFlagInfo (https://docs.bazel.build/versions/master/skylark/lib/FeatureFlagInfo.html) This last case is a bit unusual: Starlark rules providing FeatureFlagInfo "look like" configuration (since you can select() on them). But they aren't actually configuration (since you can't set their values). See the discussion on the last test in configured_query_test.sh for how we're handling them. This also propagates required fragments through output files (e.g. when a rule depends on "foo.out" which is a generated output depending on other rules). PiperOrigin-RevId: 277348895
{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