File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments