[CAS] Workaround the missing file system dependency from clang importer

This commit is contained in:
Steven Wu
2023-06-06 11:12:40 -07:00
parent 9a3573bed1
commit 07a35e9bd3
3 changed files with 31 additions and 0 deletions

View File

@@ -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) {