From fb7566456c95812a6274f753560550a7825beb36 Mon Sep 17 00:00:00 2001 From: Andrew Walbran Date: Tue, 20 Feb 2024 18:12:57 +0000 Subject: [PATCH] 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 --- bloaty/bloaty.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bloaty/bloaty.go b/bloaty/bloaty.go index 43fb71dd2..b72b6d387 100644 --- a/bloaty/bloaty.go +++ b/bloaty/bloaty.go @@ -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