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
4
cc/cc.go
4
cc/cc.go
|
@ -1933,7 +1933,11 @@ func (c *Module) depsToPaths(ctx android.ModuleContext) PathDeps {
|
|||
|
||||
if ptr != nil {
|
||||
if !linkFile.Valid() {
|
||||
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