Skip to content

Commit 9e42480

Browse files
committed
🔨 Fix marlin_custom.* without lib_deps
1 parent e46a502 commit 9e42480

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

buildroot/share/PlatformIO/scripts/common-dependencies.py

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ def add_to_feat_cnf(feature, flines):
6767
for dep in re.split(r',\s*', line):
6868
lib_name = re.sub(r'@([~^]|[<>]=?)?[\d.]+', '', dep.strip()).split('=').pop(0)
6969
lib_re = re.compile('(?!^' + lib_name + '\\b)')
70+
if not 'lib_deps' in feat: feat['lib_deps'] = {}
7071
feat['lib_deps'] = list(filter(lib_re.match, feat['lib_deps'])) + [dep]
7172
blab("[%s] lib_deps = %s" % (feature, dep), 3)
7273

0 commit comments

Comments
 (0)