mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[CAS] Workaround the missing file system dependency from clang importer
This commit is contained in:
@@ -446,6 +446,11 @@ void SwiftDependencyScanningService::setupCachingDependencyScanningService(
|
||||
}
|
||||
}
|
||||
|
||||
// Fetch some dependency files from clang importer.
|
||||
auto clangImporter = static_cast<ClangImporter *>(
|
||||
Instance.getASTContext().getClangModuleLoader());
|
||||
clangImporter->addClangInvovcationDependencies(CommonDependencyFiles);
|
||||
|
||||
auto CachingFS =
|
||||
llvm::cas::createCachingOnDiskFileSystem(Instance.getObjectStore());
|
||||
if (!CachingFS) {
|
||||
|
||||
Reference in New Issue
Block a user