mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
waf: build_summary: don't call size for empty list of nodes
Otherwise, that will cause an error.
This commit is contained in:
parent
71212942da
commit
5d7ca3fd27
@ -142,20 +142,20 @@ def _build_summary(bld):
|
|||||||
filtered_taskgens.append(tg)
|
filtered_taskgens.append(tg)
|
||||||
taskgens = filtered_taskgens
|
taskgens = filtered_taskgens
|
||||||
|
|
||||||
l = bld.size_summary(nodes)
|
if nodes:
|
||||||
for i, data in enumerate(l):
|
l = bld.size_summary(nodes)
|
||||||
taskgens[i].build_summary.update(data)
|
for i, data in enumerate(l):
|
||||||
|
taskgens[i].build_summary.update(data)
|
||||||
|
|
||||||
summary_data_list = [tg.build_summary for tg in taskgens]
|
summary_data_list = [tg.build_summary for tg in taskgens]
|
||||||
print_table(summary_data_list, bld.env.BUILD_SUMMARY_HEADER)
|
print_table(summary_data_list, bld.env.BUILD_SUMMARY_HEADER)
|
||||||
|
|
||||||
if targets_suppressed:
|
if targets_suppressed:
|
||||||
Logs.info('')
|
Logs.info('')
|
||||||
Logs.pprint(
|
Logs.pprint(
|
||||||
'NORMAL',
|
'NORMAL',
|
||||||
'Note: Some targets were suppressed. Use --summary-all if you ' +
|
'Note: Some targets were suppressed. Use --summary-all if you want information of all targets.',
|
||||||
'want information of all targets.',
|
)
|
||||||
)
|
|
||||||
|
|
||||||
if hasattr(bld, 'extra_build_summary'):
|
if hasattr(bld, 'extra_build_summary'):
|
||||||
bld.extra_build_summary(bld, sys.modules[__name__])
|
bld.extra_build_summary(bld, sys.modules[__name__])
|
||||||
|
Loading…
Reference in New Issue
Block a user