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