From b9c3830b08e181328c8df6c83025fa3ad15dbebd Mon Sep 17 00:00:00 2001 From: Cloud Han Date: Thu, 13 Feb 2025 21:41:54 +0800 Subject: [PATCH] fix: explicit allow_empty --- cuda/private/os_helpers.bzl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cuda/private/os_helpers.bzl b/cuda/private/os_helpers.bzl index 50bcf73e..0c24a828 100644 --- a/cuda/private/os_helpers.bzl +++ b/cuda/private/os_helpers.bzl @@ -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),