mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-14 10:17:49 -06:00
🔨 Fix marlin_custom.* without lib_deps
This commit is contained in:
parent
e46a50236f
commit
9e42480855
1 changed files with 1 additions and 0 deletions
|
@ -67,6 +67,7 @@ if pioutil.is_pio_build():
|
||||||
for dep in re.split(r',\s*', line):
|
for dep in re.split(r',\s*', line):
|
||||||
lib_name = re.sub(r'@([~^]|[<>]=?)?[\d.]+', '', dep.strip()).split('=').pop(0)
|
lib_name = re.sub(r'@([~^]|[<>]=?)?[\d.]+', '', dep.strip()).split('=').pop(0)
|
||||||
lib_re = re.compile('(?!^' + lib_name + '\\b)')
|
lib_re = re.compile('(?!^' + lib_name + '\\b)')
|
||||||
|
if not 'lib_deps' in feat: feat['lib_deps'] = {}
|
||||||
feat['lib_deps'] = list(filter(lib_re.match, feat['lib_deps'])) + [dep]
|
feat['lib_deps'] = list(filter(lib_re.match, feat['lib_deps'])) + [dep]
|
||||||
blab("[%s] lib_deps = %s" % (feature, dep), 3)
|
blab("[%s] lib_deps = %s" % (feature, dep), 3)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue