We have Bazel build with several top level targets representing separate products which can be requested like “bazel build ProductA”.
Different targets have different compatibility requirements, so we (plan to) assign “target_compatible_with” attribute to the targets which have platform limitations.
The problem we hit is that “bazel build ProductA” does not combine with “target_compatible_with” attribute. As soon as in the transitive closure of the product there is a target incompatible with the requested platform it fails the build.
We see no way to skip incompatible targets in the transitive closure of the requested top level target.
Any ideas?
Thank you!
Konstantin
P.S I know incompatible targets can be skipped like this,
but it only works for cquery while we need it for the build. Unfortunately
provider IncompatiblePlatformProvider is not available in Starlark and “providers”
function is only available in cquery, but not in build.
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/2cb79c40-0f2c-48bc-89dc-c9ceb933f57dn%40googlegroups.com.