Merge "Extend ALLOW_MISSING_DEPENDENCIES coverage"

am: 7617fc2fab

Change-Id: I6d5bd7730abb0e03644c3747ebddcb0a1839665a
This commit is contained in:
Isaac Chen 2019-10-17 13:31:23 -07:00 committed by android-build-merger
commit 0166208e24

View file

@ -1933,7 +1933,11 @@ func (c *Module) depsToPaths(ctx android.ModuleContext) PathDeps {
if ptr != nil {
if !linkFile.Valid() {
ctx.ModuleErrorf("module %q missing output file", depName)
if !ctx.Config().AllowMissingDependencies() {
ctx.ModuleErrorf("module %q missing output file", depName)
} else {
ctx.AddMissingDependencies([]string{depName})
}
return
}
*ptr = append(*ptr, linkFile.Path())