Merge "Extend ALLOW_MISSING_DEPENDENCIES coverage" am: 7617fc2fab
am: 0166208e24
Change-Id: Ie3fe99d5439e266ec6ecf5c6f47820e3c04916b6
This commit is contained in:
6
cc/cc.go
6
cc/cc.go
@@ -1933,7 +1933,11 @@ func (c *Module) depsToPaths(ctx android.ModuleContext) PathDeps {
|
|||||||
|
|
||||||
if ptr != nil {
|
if ptr != nil {
|
||||||
if !linkFile.Valid() {
|
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
|
return
|
||||||
}
|
}
|
||||||
*ptr = append(*ptr, linkFile.Path())
|
*ptr = append(*ptr, linkFile.Path())
|
||||||
|
Reference in New Issue
Block a user