aboutsummaryrefslogtreecommitdiff
path: root/phony
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2020-08-05 19:31:54 +0000
committerSteven Moreland <smoreland@google.com>2020-08-05 19:31:54 +0000
commit9cd45782e5828bb0afaf2ad041d812d284c4a054 (patch)
tree50746588f609448d28d56c7edf0a60267b452b10 /phony
parent1b478e57a000b0a43baf36bf121bfbbe09228fee (diff)
downloadsoong-9cd45782e5828bb0afaf2ad041d812d284c4a054.tar.gz
allow empty phony modules
In order to allow reservation of names in the build system. Bug: 162275959 Test: build only Change-Id: I8f1622bdbebe794dafd5c341d861da5468cd52bd
Diffstat (limited to 'phony')
-rw-r--r--phony/phony.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/phony/phony.go b/phony/phony.go
index 305a434f4..cb60b9f9e 100644
--- a/phony/phony.go
+++ b/phony/phony.go
@@ -44,11 +44,6 @@ func (p *phony) GenerateAndroidBuildActions(ctx android.ModuleContext) {
p.requiredModuleNames = ctx.RequiredModuleNames()
p.hostRequiredModuleNames = ctx.HostRequiredModuleNames()
p.targetRequiredModuleNames = ctx.TargetRequiredModuleNames()
- if len(p.requiredModuleNames) == 0 &&
- len(p.hostRequiredModuleNames) == 0 && len(p.targetRequiredModuleNames) == 0 {
- ctx.PropertyErrorf("required", "phony must not have empty required dependencies "+
- "in order to be useful(and therefore permitted).")
- }
}
func (p *phony) AndroidMk() android.AndroidMkData {