Skip empty __cores__ dir for project generator

This commit is contained in:
Ivan Kravets
2016-01-28 18:42:56 +02:00
parent 04cd772f0d
commit e6745de8d8

View File

@ -177,9 +177,11 @@ def DumpIDEData(env):
# ignore user's specified libs # ignore user's specified libs
if name in env.get("LIB_IGNORE", []): if name in env.get("LIB_IGNORE", []):
continue continue
if name == "__cores__" and isdir(join(libs_dir, name, BOARD_CORE)): if name == "__cores__":
return _append_lib_includes( if isdir(join(libs_dir, name, BOARD_CORE)):
join(libs_dir, name, BOARD_CORE), includes) _append_lib_includes(
join(libs_dir, name, BOARD_CORE), includes)
return
include = ( include = (
join(libs_dir, name, "src") join(libs_dir, name, "src")