Skip to content

Commit bbaf472

Browse files
committed
Using Library.SourceDirs() to obtain lib source dirs
1 parent 4b0b588 commit bbaf472

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
@@ -448,18 +448,13 @@ func (f *CppIncludesFinder) findIncludesUntilDone(sourceFile *SourceFile) error
448448
// include path and queue its source files for further
449449
// include scanning
450450
f.ctx.ImportedLibraries = append(f.ctx.ImportedLibraries, library)
451-
452-
f.log.Debugf("Using library include folder: %s", library.SourceDir)
453-
f.IncludeDirsFound.Add(library.SourceDir)
454451
f.cache.AddAndCheckEntry(sourcePath, include, library.SourceDir)
455452

456-
if library.UtilityDir != nil {
457-
// TODO: Use library.SourceDirs() instead?
458-
f.IncludeDirsFound.Add(library.UtilityDir)
459-
}
460453
sourceDirs := library.SourceDirs()
461454
buildDir := f.ctx.LibrariesBuildPath.Join(library.Name)
462455
for _, sourceDir := range sourceDirs {
456+
f.log.Debugf("Using library include folder: %s", sourceDir.Dir)
457+
f.IncludeDirsFound.Add(sourceDir.Dir)
463458
if library.Precompiled && library.PrecompiledWithSources {
464459
// Fully precompiled libraries should have no dependencies
465460
// to avoid ABI breakage

0 commit comments

Comments
 (0)