Merge "Ignore modules which are not exported to Make." into main

This commit is contained in:
Treehugger Robot
2024-02-21 04:54:36 +00:00
committed by Gerrit Code Review

View File

@@ -85,6 +85,9 @@ func fileSizesSingleton() android.Singleton {
func (singleton *sizesSingleton) GenerateBuildActions(ctx android.SingletonContext) {
var deps android.Paths
ctx.VisitAllModules(func(m android.Module) {
if !m.ExportedToMake() {
return
}
filePaths, ok := android.SingletonModuleProvider(ctx, m, fileSizeMeasurerKey)
if !ok {
return