Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for @bazel_tools//src/conditions #7668

Closed
laurentlb opened this issue Mar 7, 2019 · 3 comments
Closed

Documentation for @bazel_tools//src/conditions #7668

laurentlb opened this issue Mar 7, 2019 · 3 comments
Assignees
Labels
P3 We're not considering working on this, but happy to review a PR. (No assignee) team-Configurability platforms, toolchains, cquery, select(), config transitions type: documentation (cleanup)

Comments

@laurentlb
Copy link
Contributor

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

@laszlocsomor
Copy link
Contributor

laszlocsomor commented Mar 7, 2019

I used this pattern in bazelbuild/bazel-skylib#123.

@dslomov dslomov added team-Configurability platforms, toolchains, cquery, select(), config transitions untriaged labels Mar 8, 2019
@katre katre added type: documentation (cleanup) P3 We're not considering working on this, but happy to review a PR. (No assignee) and removed untriaged labels Mar 11, 2019
@aiuto
Copy link
Contributor

aiuto commented Dec 9, 2022

Obsolete. We should be removing this in favor of the @platforms repo.

@aiuto aiuto closed this as not planned Won't fix, can't repro, duplicate, stale Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 We're not considering working on this, but happy to review a PR. (No assignee) team-Configurability platforms, toolchains, cquery, select(), config transitions type: documentation (cleanup)
Projects
None yet
Development

No branches or pull requests

7 participants