Skip to content

Documentation for @bazel_tools//src/conditions #7668

@laurentlb

Description

@laurentlb

@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.

Metadata

Metadata

Assignees

Labels

P3We're not considering working on this, but happy to review a PR. (No assignee)team-Configurabilityplatforms, toolchains, cquery, select(), config transitionstype: documentation (cleanup)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions