Unverified Commit 37434d16 authored by Cristian Maglie's avatar Cristian Maglie Committed by GitHub

Print "multiple libraries found for header.h" message only when it really happens. (#478)

parent bc6c8232
......@@ -58,6 +58,9 @@ func (s *PrintUsedAndNotUsedLibraries) Run(ctx *types.Context) error {
libraryResolutionResults := ctx.LibrariesResolutionResults
for header, libResResult := range libraryResolutionResults {
if len(libResResult.NotUsedLibraries) == 0 {
continue
}
logger.Fprintln(os.Stdout, logLevel, constants.MSG_LIBRARIES_MULTIPLE_LIBS_FOUND_FOR, header)
logger.Fprintln(os.Stdout, logLevel, constants.MSG_LIBRARIES_USED, libResResult.Library.InstallDir)
for _, notUsedLibrary := range libResResult.NotUsedLibraries {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment