Skip to content

Fail when unsupported platforms are specified - #479

Merged
cloudhan merged 1 commit into
bazel-contrib:mainfrom
JamesMBartlett:james/error_on_unsupported_platform
Jun 4, 2026
Merged

Fail when unsupported platforms are specified#479
cloudhan merged 1 commit into
bazel-contrib:mainfrom
JamesMBartlett:james/error_on_unsupported_platform

Conversation

@JamesMBartlett

Copy link
Copy Markdown
Contributor

I accidentally set my platform tag to linux-x86-64 instead of linux-x86_64, along with linux-sbsa. This led to the build attempting to use aarch64 nvcc on an x86 host, because the 1 platform/version fallback would be hit, since the linux-x86-64 is an unsupported platform. This PR checks that all platforms specified are supported, avoiding the strange behaviour of using the wrong arch for the exec platform.

Signed-off-by: James Bartlett <james@gimletlabs.ai>
@cloudhan
cloudhan merged commit 249c9e8 into bazel-contrib:main Jun 4, 2026
23 checks passed
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.

2 participants