[SDKInfo] Fix SDKInfo loading to use correct VFS

Partially revert https://github.com/swiftlang/swift/pull/86309. Keep the
SDKInfo parsing in the ASTContext separately from the search path
configuration. This allows the availablity checking to load SDKSettings
from the correct VFS.

rdar://169886913
This commit is contained in:
Steven Wu
2026-02-09 15:01:19 -08:00
parent 0a744979ca
commit 17d969924c
18 changed files with 103 additions and 65 deletions

View File

@@ -241,8 +241,7 @@ ModuleDependencyScanningWorker::ModuleDependencyScanningWorker(
workerCompilerInvocation->getSymbolGraphOptions(),
workerCompilerInvocation->getCASOptions(),
workerCompilerInvocation->getSerializationOptions(),
ScanASTContext.SourceMgr, *workerDiagnosticEngine,
workerCompilerInvocation->getSDKInfo()));
ScanASTContext.SourceMgr, *workerDiagnosticEngine));
scanningASTDelegate = std::make_unique<InterfaceSubContextDelegateImpl>(
workerASTContext->SourceMgr, workerDiagnosticEngine.get(),