Merge "Extend ALLOW_MISSING_DEPENDENCIES coverage"

This commit is contained in:
Treehugger Robot 2019-10-17 19:46:53 +00:00 committed by Gerrit Code Review
commit 7617fc2fab
1 changed files with 5 additions and 1 deletions

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())