Bazel does not skip toolchain resolution for incompatible targets (target_compatible_with with --platform) #14867
Labels
team-Configurability
platforms, toolchains, cquery, select(), config transitions
type: bug
untriaged
Description of the problem / feature request:
Bazel fails with;
No matching toolchains found for types @bazel_tools//tools/cpp:toolchain_type.
When target should have been skipped.
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Create a workspace with;
Try to build with
no_os
platform e.g.In this case I would expect bazel to skip toolchain resolution for
//:main
as it is incompatible,Note that #10134 seems to unrelated to this issue.
What operating system are you running Bazel on?
Ubuntu 20.04 under WSL2
What's the output of
bazel info release
?release 5.0.0
Have you found anything relevant by searching the web?
No
Any other information, logs, or outputs that you want to share?
No
The text was updated successfully, but these errors were encountered: