summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author LaMont Jones <lamontjones@google.com> 2023-12-06 18:01:17 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-12-06 18:01:17 +0000
commit7dcbf427f981c8b0fd1f3639b044a3a2d7abbdec (patch)
tree8e7398dacdd1b13bbdaf8e6cce11e09552a4425e
parent3ad4cf3a9a0893a91eecb431b7a323c17063a2cc (diff)
parentc71f79e3ffeeda47a6c2d816fc757440453e517e (diff)
Merge "cc: export LOCAL_ACONFIG_FILES for printflags" into main
-rw-r--r--cc/androidmk.go2
-rw-r--r--cc/cc.go4
2 files changed, 6 insertions, 0 deletions
diff --git a/cc/androidmk.go b/cc/androidmk.go
index ed13e5e99..224ea9623 100644
--- a/cc/androidmk.go
+++ b/cc/androidmk.go
@@ -133,6 +133,8 @@ func (c *Module) AndroidMkEntries() []android.AndroidMkEntries {
entries.SetString("SOONG_SDK_VARIANT_MODULES",
"$(SOONG_SDK_VARIANT_MODULES) $(patsubst %.sdk,%,$(LOCAL_MODULE))")
}
+ // TODO(b/311155208): The container here should be system.
+ entries.SetOptionalPaths("LOCAL_ACONFIG_FILES", c.getTransitiveAconfigFiles(""))
},
},
ExtraFooters: []android.AndroidMkExtraFootersFunc{
diff --git a/cc/cc.go b/cc/cc.go
index 3fc93bd69..5d4ceb81d 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -2345,6 +2345,10 @@ func (c *Module) maybeUnhideFromMake() {
}
}
+func (c *Module) getTransitiveAconfigFiles(container string) []android.Path {
+ return c.transitiveAconfigFiles[container].ToList()
+}
+
// maybeInstall is called at the end of both GenerateAndroidBuildActions and
// ProcessBazelQueryResponse to run the install hooks for installable modules,
// like binaries and tests.