Skip to content

Commit 5cec334

Browse files
committed
Fix error in build script when library list is empty
1 parent 54ae922 commit 5cec334

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/build.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@
3232
def compile(tmp_dir, sketch, tools_dir, hardware_dir, ide_path, f, args):
3333
cmd = ide_path + '/arduino-builder '
3434
cmd += '-compile -logger=human '
35-
for lib_dir in args.library_path:
36-
cmd += '-libraries "' + lib_dir + '" '
35+
if args.library_path:
36+
for lib_dir in args.library_path:
37+
cmd += '-libraries "' + lib_dir + '" '
3738
cmd += '-build-path "' + tmp_dir + '" '
3839
cmd += '-hardware "' + ide_path + '/hardware" '
3940
cmd += '-hardware ' + hardware_dir + ' '

0 commit comments

Comments
 (0)