summaryrefslogtreecommitdiff
path: root/bloaty
diff options
context:
space:
mode:
author Andrew Walbran <qwandor@google.com> 2024-02-20 18:12:57 +0000
committer Andrew Walbran <qwandor@google.com> 2024-02-20 18:13:58 +0000
commitfb7566456c95812a6274f753560550a7825beb36 (patch)
tree31e7da3623873ef39e51838e554f8026817da0e1 /bloaty
parent4bec95e2f6fcb6b3e64eb5634a979720ff5a2a54 (diff)
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
Diffstat (limited to 'bloaty')
-rw-r--r--bloaty/bloaty.go3
1 files changed, 3 insertions, 0 deletions
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