AndroidCompiler supplies build information for the C++ standard library,
which is consumed by Binary through ObjectFiles. The compiler needs to
be prepared before Binary is, or the C++ stdlib won't be found.
}
state = PREPARING;
+ /* Prepare existing dependencies early, because their information may be
+ needed to find other dependencies. */
+ for(Target *d: depends)
+ d->prepare();
if(tool)
tool->prepare();
broken |= (component && !component->get_problems().empty());
}
+ /* Now that all dependencies are known, prepare them again. This will do
+ nothing to already prepared targets. */
for(Target *d: depends)
{
d->prepare();