1
0
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:
Ivan Grokhotkov 2016-03-11 15:44:51 +03:00
parent 54ae922037
commit 5cec3345ad

View File

@ -32,8 +32,9 @@ 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 '
for lib_dir in args.library_path: if args.library_path:
cmd += '-libraries "' + lib_dir + '" ' for lib_dir in args.library_path:
cmd += '-libraries "' + lib_dir + '" '
cmd += '-build-path "' + tmp_dir + '" ' cmd += '-build-path "' + tmp_dir + '" '
cmd += '-hardware "' + ide_path + '/hardware" ' cmd += '-hardware "' + ide_path + '/hardware" '
cmd += '-hardware ' + hardware_dir + ' ' cmd += '-hardware ' + hardware_dir + ' '