-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Documentation for @bazel_tools//src/conditions #7668
Copy link
Copy link
Closed as not planned
Labels
P3We're not considering working on this, but happy to review a PR. (No assignee)We're not considering working on this, but happy to review a PR. (No assignee)team-Configurabilityplatforms, toolchains, cquery, select(), config transitionsplatforms, toolchains, cquery, select(), config transitionstype: documentation (cleanup)
Description
@laszlocsomor used this technique in a bzl file to test if we're on Windows:
is_windows = select({
"@bazel_tools//src/conditions:host_windows": True,
"//conditions:default": False,
}),I didn't find anything about @bazel_tools//src/conditions in the documentation.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P3We're not considering working on this, but happy to review a PR. (No assignee)We're not considering working on this, but happy to review a PR. (No assignee)team-Configurabilityplatforms, toolchains, cquery, select(), config transitionsplatforms, toolchains, cquery, select(), config transitionstype: documentation (cleanup)