@@ -343,16 +343,6 @@ func findIncludesUntilDone(ctx *types.Context, cache *includeCache, sourceFileQu
343
343
if library := sourceFile .Library ; library != nil && library .UtilityDir != nil {
344
344
includeFolders = append (includeFolders , library .UtilityDir )
345
345
}
346
-
347
- if library := sourceFile .Library ; library != nil {
348
- if library .Precompiled && library .PrecompiledWithSources {
349
- // Fully precompiled libraries should have no dependencies
350
- // to avoid ABI breakage
351
- if ctx .Verbose {
352
- ctx .Info (tr ("Skipping dependencies detection for precompiled library %[1]s" , library .Name ))
353
- }
354
- return nil
355
- }
356
346
}
357
347
358
348
var preprocErr error
@@ -419,9 +409,16 @@ func findIncludesUntilDone(ctx *types.Context, cache *includeCache, sourceFileQu
419
409
// include scanning
420
410
ctx .ImportedLibraries = append (ctx .ImportedLibraries , library )
421
411
appendIncludeFolder (ctx , cache , sourcePath , missingIncludeH , library .SourceDir )
422
- sourceDirs := library .SourceDirs ()
423
- for _ , sourceDir := range sourceDirs {
424
- queueSourceFilesFromFolder (ctx , sourceFileQueue , library , sourceDir .Dir , sourceDir .Recurse )
412
+
413
+ if library .Precompiled && library .PrecompiledWithSources {
414
+ // Fully precompiled libraries should have no dependencies to avoid ABI breakage
415
+ if ctx .Verbose {
416
+ ctx .Info (tr ("Skipping dependencies detection for precompiled library %[1]s" , library .Name ))
417
+ }
418
+ } else {
419
+ for _ , sourceDir := range library .SourceDirs () {
420
+ queueSourceFilesFromFolder (ctx , sourceFileQueue , library , sourceDir .Dir , sourceDir .Recurse )
421
+ }
425
422
}
426
423
first = false
427
424
}
0 commit comments