Revert "[SourceKit] Disable module system headers validation"

This reverts commit 951b85359a.
This commit is contained in:
Rintaro Ishizaki
2020-01-30 15:04:07 -08:00
parent a34b044889
commit e121cb09cd
3 changed files with 5 additions and 7 deletions

View File

@@ -539,11 +539,6 @@ bool SwiftASTManager::initCompilerInvocation(
// We don't care about LLVMArgs
FrontendOpts.LLVMArgs.clear();
// This validation may call stat(2) many times. Disable it to prevent
// performance issues.
Invocation.getSearchPathOptions().DisableModulesValidateSystemDependencies =
true;
// SwiftSourceInfo files provide source location information for decls coming
// from loaded modules. For most IDE use cases it either has an undesirable
// impact on performance with no benefit (code completion), results in stale