Skip to content

Commit

Permalink
Add additional paths also in library discovery phase
Browse files Browse the repository at this point in the history
This tries to avoid bundled libraries shadowing other includes
  • Loading branch information
facchinm committed Mar 11, 2020
1 parent 2ffbe85 commit 6058360
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions legacy/builder/container_find_includes.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,11 @@ func findIncludesUntilDone(ctx *types.Context, cache *includeCache, sourceFile t
if library, ok := sourceFile.Origin.(*libraries.Library); ok && library.UtilityDir != nil {
includes = append(includes, library.UtilityDir)
}
if library, ok := sourceFile.Origin.(*libraries.Library); ok && library.AdditionalIncludePaths != nil {
for _, el := range library.AdditionalIncludePaths {
includes = append(includes, el)
}
}
var preproc_err error
var preproc_stderr []byte
if unchanged && cache.valid {
Expand Down

0 comments on commit 6058360

Please sign in to comment.