Skip to content

Commit 41c1553

Browse files
committed
Collect excluded libraries into ignored_dirs
1 parent d331539 commit 41c1553

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/resources/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,10 @@ def filter_by_libraries(self, libraries_included):
312312
if ref.name.endswith(MBED_LIB_FILENAME)
313313
)
314314
self._excluded_libs = all_library_refs - self._libs_filtered
315+
if self._collect_ignores:
316+
self.ignored_dirs += [
317+
dirname(n) or "." for n, _ in self._excluded_libs
318+
]
315319

316320
def _get_from_refs(self, file_type, key):
317321
return sorted([key(f) for f in self.get_file_refs(file_type)])

0 commit comments

Comments
 (0)