Skip to content

Commit b3e4ac8

Browse files
authored
Merge pull request #29555 from rintaro/revert-sourcekit-rdar58550697
Revert: [SourceKit] Disable module system headers validation
2 parents 59fd697 + cb20d0e commit b3e4ac8

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

tools/SourceKit/lib/SwiftLang/SwiftASTManager.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -539,11 +539,6 @@ bool SwiftASTManager::initCompilerInvocation(
539539
// We don't care about LLVMArgs
540540
FrontendOpts.LLVMArgs.clear();
541541

542-
// This validation may call stat(2) many times. Disable it to prevent
543-
// performance issues.
544-
Invocation.getSearchPathOptions().DisableModulesValidateSystemDependencies =
545-
true;
546-
547542
// SwiftSourceInfo files provide source location information for decls coming
548543
// from loaded modules. For most IDE use cases it either has an undesirable
549544
// impact on performance with no benefit (code completion), results in stale

tools/swift-ide-test/swift-ide-test.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3436,8 +3436,6 @@ int main(int argc, char *argv[]) {
34363436
options::DebugForbidTypecheckPrefix;
34373437
InitInvok.getTypeCheckerOptions().DebugConstraintSolver =
34383438
options::DebugConstraintSolver;
3439-
InitInvok.getSearchPathOptions().DisableModulesValidateSystemDependencies =
3440-
true;
34413439

34423440
for (auto ConfigName : options::BuildConfigs)
34433441
InitInvok.getLangOptions().addCustomConditionalCompilationFlag(ConfigName);

0 commit comments

Comments
 (0)