Don't build modules with (submodules with) missing headers

Unless they are in submodules that aren't available anyway, due to
requirements not being met.  Also, mark children as unavailable when the
parent is.

llvm-svn: 206664
This commit is contained in:
Ben Langmuir
2014-04-18 22:07:31 +00:00
parent b5d368e838
commit ec8c975214
7 changed files with 48 additions and 10 deletions

View File

@@ -160,6 +160,11 @@ void Module::addRequirement(StringRef Feature, bool RequiredState,
if (hasFeature(Feature, LangOpts, Target) == RequiredState)
return;
IsMissingRequirement = true;
markUnavailable();
}
void Module::markUnavailable() {
if (!IsAvailable)
return;