mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
Fix error in build script when library list is empty
This commit is contained in:
parent
54ae922037
commit
5cec3345ad
@ -32,6 +32,7 @@ import shutil
|
|||||||
def compile(tmp_dir, sketch, tools_dir, hardware_dir, ide_path, f, args):
|
def compile(tmp_dir, sketch, tools_dir, hardware_dir, ide_path, f, args):
|
||||||
cmd = ide_path + '/arduino-builder '
|
cmd = ide_path + '/arduino-builder '
|
||||||
cmd += '-compile -logger=human '
|
cmd += '-compile -logger=human '
|
||||||
|
if args.library_path:
|
||||||
for lib_dir in args.library_path:
|
for lib_dir in args.library_path:
|
||||||
cmd += '-libraries "' + lib_dir + '" '
|
cmd += '-libraries "' + lib_dir + '" '
|
||||||
cmd += '-build-path "' + tmp_dir + '" '
|
cmd += '-build-path "' + tmp_dir + '" '
|
||||||
|
Loading…
x
Reference in New Issue
Block a user