Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Print "multiple libraries found for header.h" message only when it re…
…ally happens.
  • Loading branch information
cmaglie committed Nov 11, 2019
commit 24193d03d7936c653a72b378c35710933bba0f40
3 changes: 3 additions & 0 deletions legacy/builder/print_used_and_not_used_libraries.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down