Skip to content

Commit 6058360

Browse files
committed
Add additional paths also in library discovery phase
This tries to avoid bundled libraries shadowing other includes
1 parent 2ffbe85 commit 6058360

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

legacy/builder/container_find_includes.go

+5
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,11 @@ func findIncludesUntilDone(ctx *types.Context, cache *includeCache, sourceFile t
318318
if library, ok := sourceFile.Origin.(*libraries.Library); ok && library.UtilityDir != nil {
319319
includes = append(includes, library.UtilityDir)
320320
}
321+
if library, ok := sourceFile.Origin.(*libraries.Library); ok && library.AdditionalIncludePaths != nil {
322+
for _, el := range library.AdditionalIncludePaths {
323+
includes = append(includes, el)
324+
}
325+
}
321326
var preproc_err error
322327
var preproc_stderr []byte
323328
if unchanged && cache.valid {

0 commit comments

Comments
 (0)