Skip to content

Commit 48f73e9

Browse files
committed
Using Library.SourceDirs() to obtain lib source dirs
1 parent 3604d21 commit 48f73e9

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

legacy/builder/container_find_includes.go

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

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

0 commit comments

Comments
 (0)