Ignore modules which are not exported to Make.

Bug: 323833345
Test: forrest run on git_udc-qpr-dev-plus-aosp/aosp_arm64-trunk_staging-userdebug
Change-Id: I3b190ebc1a1096972d0a1273e490972e04684dd2
This commit is contained in:
Andrew Walbran 2024-02-20 18:12:57 +00:00
parent 4bec95e2f6
commit fb7566456c

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