Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-cli
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Operations
Operations
Metrics
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-cli
Commits
37434d16
Unverified
Commit
37434d16
authored
Nov 11, 2019
by
Cristian Maglie
Committed by
GitHub
Nov 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print "multiple libraries found for header.h" message only when it really happens. (#478)
parent
bc6c8232
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
legacy/builder/print_used_and_not_used_libraries.go
legacy/builder/print_used_and_not_used_libraries.go
+3
-0
No files found.
legacy/builder/print_used_and_not_used_libraries.go
View file @
37434d16
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment