Skip to content

Commit

Permalink
fix: explicit allow_empty
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhan committed Feb 13, 2025
1 parent 0039a8a commit b9c3830
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cuda/private/os_helpers.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ def cc_import_versioned_sos(name, shared_library):
name: Name of the cc_library.
shared_library: Prefix of the versioned .so files.
"""
so_paths = native.glob([shared_library + "*"])

# NOTE: only empty when the componnent is not installed on the system, say, cublas is not installed with apt-get
so_paths = native.glob([shared_library + "*"], allow_empty = True)

[native.cc_import(
name = paths.basename(p),
Expand Down

0 comments on commit b9c3830

Please sign in to comment.