Skip to content

Commit b80c5c2

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

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
@@ -332,6 +332,11 @@ func findIncludesUntilDone(ctx *types.Context, cache *includeCache, sourceFile t
332332
if library, ok := sourceFile.Origin.(*libraries.Library); ok && library.UtilityDir != nil {
333333
includes = append(includes, library.UtilityDir)
334334
}
335+
if library, ok := sourceFile.Origin.(*libraries.Library); ok && library.AdditionalIncludePaths != nil {
336+
for _, el := range library.AdditionalIncludePaths {
337+
includes = append(includes, el)
338+
}
339+
}
335340
var preproc_err error
336341
var preproc_stderr []byte
337342
if unchanged && cache.valid {

0 commit comments

Comments
 (0)