Merge "Extend ALLOW_MISSING_DEPENDENCIES coverage"
am: 7617fc2fab
Change-Id: I6d5bd7730abb0e03644c3747ebddcb0a1839665a
This commit is contained in:
commit
0166208e24
1 changed files with 5 additions and 1 deletions
6
cc/cc.go
6
cc/cc.go
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue