Merge "Extend ALLOW_MISSING_DEPENDENCIES coverage" am: 7617fc2fab
am: 0166208e24
am: f7a8071ae9
Change-Id: I3bc18bd2637b9d2d9654b129f963ab6f97ecd782
This commit is contained in:
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())
|
||||
|
Reference in New Issue
Block a user