forked from bazelbuild/bazel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
target_compatible_with
work better on alias()
targets
Currently the `target_compatible_with` on `alias()` targets only works when a `select()` is involved. That's because `alias()` targets by default don't have a toolchains evaluated. This patch changes the behaviour by making it so all `alias()` targets with a `target_compatible_with` attribute are skipped appropriately. When `target_compatible_with` is present, then toolchains are evaluated for `alias()` targets. The implementation is basically an enhancement to @gregestren's 1c3a245 (bazelbuild#14310). In addition to resolving toolchains when a `select()` is present, Bazel will now also resolve toolchains when a `target_compatible_with` attribute is set. I also took this opportunity to rename `HAS_SELECT` to something more appropriate. The name may be too long now, but I feel that at least it's descriptive. Fixes bazelbuild#17663 Closes bazelbuild#17983. PiperOrigin-RevId: 522446438 Change-Id: I80bce3e840553b75960022545df7f27ad1d1d363
- Loading branch information
Showing
5 changed files
with
57 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters