restore the ability in the backend to silently find a program
Broken in commit which moved
the reporting and unconditionally added it.
@@ -1445,6 +1445,7 @@ external dependencies (including libraries) must go to "dependencies".''')
progobj = self.notfound_program(args)
if isinstance(progobj, ExternalProgram) and not progobj.found():
+ if not silent:
mlog.log('Program', mlog.bold(progobj.get_name()), 'found:', mlog.red('NO'))
if required:
m = 'Program {!r} not found'
@@ -1475,6 +1476,7 @@ external dependencies (including libraries) must go to "dependencies".''')
# Only store successful lookups
self.store_name_lookups(args)
+ if not silent:
mlog.log('Program', mlog.bold(progobj.name), 'found:', mlog.green('YES'), *extra_info)
if isinstance(progobj, build.Executable):
progobj.was_returned_by_find_program = True
