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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user