Skip to content

Commit 9be0a82

Browse files
authored
LDF: refresh lib dependency after recursive search (platformio#4941)
LDF might mistakenly remove recursive dependency libs from a graph usually platform bundled ones Closes platformio#4940
1 parent d153146 commit 9be0a82

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

platformio/builder/tools/piolib.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,6 +1159,8 @@ def _correct_found_libs(lib_builders):
11591159
for lb in lib_builders:
11601160
if lb in found_lbs:
11611161
lb.search_deps_recursive(lb.get_search_files())
1162+
# refill found libs after recursive search
1163+
found_lbs = [lb for lb in lib_builders if lb.is_dependent]
11621164
for lb in lib_builders:
11631165
for deplb in lb.depbuilders[:]:
11641166
if deplb not in found_lbs:

0 commit comments

Comments
 (0)