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

chore: replace is_windows select pattern with target_platform_has_constraint pattern #95

Merged
merged 1 commit into from
Apr 29, 2022

Conversation

@gregmagolan gregmagolan merged commit f1e10df into bazel-contrib:main Apr 29, 2022
@alexeagle
Copy link
Collaborator

Saw this go by on Bazel slack:

Chad McElligott
How do I see what os and cpu platform bazel detects for my system?
I am trying to update a custom toolchain to support arm macos and want to verify that i'm specifying the platform identifiers correctly

Cristian Hancila
bazel query @local_config_platform//... --output=build (edited)
there's also constraints.bzl in that same package with HOST_CONSTRAINTS variable

# DO NOT EDIT: automatically generated constraints list for local_config_platform
# Auto-detected host platform constraints.
HOST_CONSTRAINTS = [
  '@platforms//cpu:aarch64',
  '@platforms//os:osx',
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants