mirror of
https://github.com/wled/WLED.git
synced 2025-07-22 18:26:32 +00:00
load_usermods: Don't cross usermod includes
Only include paths for the base system deps, not those of other usermods.
This commit is contained in:
parent
5d392d89ce
commit
4bc3408410
@ -68,8 +68,10 @@ def cached_add_includes(dep, dep_cache: set, includes: deque):
|
||||
for include in dep.get_include_dirs():
|
||||
if include not in includes:
|
||||
includes.appendleft(include)
|
||||
for subdep in dep.depbuilders:
|
||||
cached_add_includes(subdep, dep_cache, includes)
|
||||
if usermod_dir not in Path(dep.src_dir).parents:
|
||||
# Recurse, but only for NON-usermods
|
||||
for subdep in dep.depbuilders:
|
||||
cached_add_includes(subdep, dep_cache, includes)
|
||||
|
||||
# Monkey-patch ConfigureProjectLibBuilder to mark up the dependencies
|
||||
# Save the old value
|
||||
|
Loading…
x
Reference in New Issue
Block a user