Skip to content

Commit f5d9ce5

Browse files
committed
Using Library.SourceDirs() to obtain lib source dirs
1 parent 84052c9 commit f5d9ce5

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Diff for: legacy/builder/container_find_includes.go

+2-7
Original file line numberDiff line numberDiff line change
@@ -438,18 +438,13 @@ func (f *CppIncludesFinder) findIncludesUntilDone(sourceFile *SourceFile) error
438438
// include path and queue its source files for further
439439
// include scanning
440440
f.ctx.ImportedLibraries = append(f.ctx.ImportedLibraries, library)
441-
442-
f.log.Debugf("Using library include folder: %s", library.SourceDir)
443-
f.IncludeDirsFound.Add(library.SourceDir)
444441
f.cache.AddAndCheckEntry(sourcePath, include, library.SourceDir)
445442

446-
if library.UtilityDir != nil {
447-
// TODO: Use library.SourceDirs() instead?
448-
f.IncludeDirsFound.Add(library.UtilityDir)
449-
}
450443
sourceDirs := library.SourceDirs()
451444
buildDir := f.ctx.LibrariesBuildPath.Join(library.Name)
452445
for _, sourceDir := range sourceDirs {
446+
f.log.Debugf("Using library include folder: %s", sourceDir.Dir)
447+
f.IncludeDirsFound.Add(sourceDir.Dir)
453448
f.AddSourceDir(buildDir, sourceDir.Dir, sourceDir.Recurse)
454449
}
455450
first = false

0 commit comments

Comments
 (0)