Delay dependency errors to ninja time for unbundled builds

Unbundled builds may use a subset of the tree, which can bring in unused
modules but not their dependencies.  Delay handling of dependency errors
for unbundled builds to ninja time, which will prevent errors if only
modules with satisified dependencies are built.

Change-Id: Ib93bae93fcfa0b55df500a30d8e35231ffb0987c
This commit is contained in:
Colin Cross
2015-12-17 16:39:19 -08:00
parent 66fe5656b4
commit 6ff5138355
5 changed files with 50 additions and 1 deletions

View File

@@ -740,7 +740,7 @@ func (c *CCBase) depsToPathsFromList(ctx common.AndroidModuleContext,
return
}
})
if !found {
if !found && !inList(n, ctx.GetMissingDependencies()) {
ctx.ModuleErrorf("unsatisified dependency on %q", n)
}
}