File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -439,18 +439,13 @@ func (f *CppIncludesFinder) findIncludesUntilDone(sourceFile *SourceFile) error
439
439
// include path and queue its source files for further
440
440
// include scanning
441
441
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 )
445
442
f .cache .AddAndCheckEntry (sourcePath , include , library .SourceDir )
446
443
447
- if library .UtilityDir != nil {
448
- // TODO: Use library.SourceDirs() instead?
449
- f .IncludeDirsFound .Add (library .UtilityDir )
450
- }
451
444
sourceDirs := library .SourceDirs ()
452
445
buildDir := f .ctx .LibrariesBuildPath .Join (library .Name )
453
446
for _ , sourceDir := range sourceDirs {
447
+ f .log .Debugf ("Using library include folder: %s" , sourceDir .Dir )
448
+ f .IncludeDirsFound .Add (sourceDir .Dir )
454
449
f .AddSourceDir (buildDir , sourceDir .Dir , sourceDir .Recurse )
455
450
}
456
451
first = false
You can’t perform that action at this time.
0 commit comments