mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-01-23 01:58:59 +00:00
🔨 Fix marlin_custom.* without lib_deps
This commit is contained in:
parent
e65e38afaf
commit
d5d497f2c5
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):
|
||||
lib_name = re.sub(r'@([~^]|[<>]=?)?[\d.]+', '', dep.strip()).split('=').pop(0)
|
||||
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]
|
||||
blab("[%s] lib_deps = %s" % (feature, dep), 3)
|
||||
|
||||
|
|
Loading…
Reference in a new issue