Skip to content

Commit

Permalink
LDF: refresh lib dependency after recursive search (#4941)
Browse files Browse the repository at this point in the history
LDF might mistakenly remove recursive dependency libs from a graph
usually platform bundled ones

Closes #4940
  • Loading branch information
vortigont authored Dec 18, 2024
1 parent d153146 commit 9be0a82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platformio/builder/tools/piolib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1159,6 +1159,8 @@ def _correct_found_libs(lib_builders):
for lb in lib_builders:
if lb in found_lbs:
lb.search_deps_recursive(lb.get_search_files())
# refill found libs after recursive search
found_lbs = [lb for lb in lib_builders if lb.is_dependent]
for lb in lib_builders:
for deplb in lb.depbuilders[:]:
if deplb not in found_lbs:
Expand Down

0 comments on commit 9be0a82

Please sign in to comment.