Skip to content

Commit b9c3830

Browse files
committed
fix: explicit allow_empty
1 parent 0039a8a commit b9c3830

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cuda/private/os_helpers.bzl

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ def cc_import_versioned_sos(name, shared_library):
2323
name: Name of the cc_library.
2424
shared_library: Prefix of the versioned .so files.
2525
"""
26-
so_paths = native.glob([shared_library + "*"])
26+
27+
# NOTE: only empty when the componnent is not installed on the system, say, cublas is not installed with apt-get
28+
so_paths = native.glob([shared_library + "*"], allow_empty = True)
2729

2830
[native.cc_import(
2931
name = paths.basename(p),

0 commit comments

Comments
 (0)