summaryrefslogtreecommitdiff
path: root/android/module.go
diff options
context:
space:
mode:
author LaMont Jones <lamontjones@google.com> 2025-02-12 11:52:00 -0800
committer LaMont Jones <lamontjones@google.com> 2025-02-13 08:28:46 -0800
commit825f8ff59cd7f3091e779a91ee54cf916dd16664 (patch)
tree8dce0d55aef95f8206280a486e71d5e659628ce7 /android/module.go
parent53915543c587c18bf7bcdcbc2fdd654d170e015e (diff)
Add partialcompileclean phony
When SOONG_USE_PARTIAL_COMPILE transitions from on to off, we need to remove all files that may have been built using partial compile. Bug: b/396145326 Test: manual, TH Change-Id: I1d91f95883fd8b1d92731a490244a898f25e614d
Diffstat (limited to 'android/module.go')
-rw-r--r--android/module.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/android/module.go b/android/module.go
index 80275a309..647dc372b 100644
--- a/android/module.go
+++ b/android/module.go
@@ -2997,6 +2997,9 @@ func AddAncestors(ctx SingletonContext, dirMap map[string]Paths, mmName func(str
func (c *buildTargetSingleton) GenerateBuildActions(ctx SingletonContext) {
var checkbuildDeps Paths
+ // Create a top level partialcompileclean target for modules to add dependencies to.
+ ctx.Phony("partialcompileclean")
+
mmTarget := func(dir string) string {
return "MODULES-IN-" + strings.Replace(filepath.Clean(dir), "/", "-", -1)
}