Skip to content

Commit 27e407d

Browse files
authored
fix: auto select all components that is available on the platform (#414)
1 parent b215f08 commit 27e407d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cuda/private/redist_json_helper.bzl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ def _collect_specs(ctx, attr, redist, the_url):
7979

8080
arch = "x86_64" # TODO: support cross compiling
8181
platform = "{os}-{arch}".format(os = os, arch = arch)
82-
components = attr.components if attr.components else [k for k, v in FULL_COMPONENT_NAME.items() if v in redist]
82+
all_components_on_platform = [k for k, v in FULL_COMPONENT_NAME.items() if v in redist and platform in redist[v]]
83+
components = attr.components if attr.components else all_components_on_platform
8384

8485
for c in components:
8586
c_full = FULL_COMPONENT_NAME[c]

0 commit comments

Comments
 (0)