Skip to content

Commit d31b245

Browse files
committed
fixup comment
1 parent 855e820 commit d31b245

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

python/private/local_runtime_repo.bzl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,13 @@ def _local_runtime_repo_impl(rctx):
100100

101101
# NOTE: Keep in sync with recursive glob in define_local_runtime_toolchain_impl
102102
include_path = rctx.path(info["include"])
103+
104+
# The reported include path may not exist, and watching a non-existant
105+
# path is an error. Silently skip, since includes are only necessary
106+
# if C extensions are built.
103107
if include_path.exists and include_path.is_dir:
104108
repo_utils.watch_tree(rctx, include_path)
105109
else:
106-
# If the path doesn't exist or is not a directory, do not watch it.
107-
# This handles the case where the include path specified in Python metadata
108-
# is invalid or points to a file.
109110
pass
110111

111112
# The cc_library.includes values have to be non-absolute paths, otherwise

0 commit comments

Comments
 (0)