summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
Diffstat (limited to 'java')
-rwxr-xr-xjava/app.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/java/app.go b/java/app.go
index a822cbf6f..68f5a6851 100755
--- a/java/app.go
+++ b/java/app.go
@@ -800,6 +800,8 @@ func collectAppDeps(ctx android.ModuleContext, app appDepsInterface,
unstrippedFile: dep.UnstrippedOutputFile(),
partition: dep.Partition(),
})
+ } else if ctx.Config().AllowMissingDependencies() {
+ ctx.AddMissingDependencies([]string{otherName})
} else {
ctx.ModuleErrorf("dependency %q missing output file", otherName)
}