mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Caching] Reduce the number of cas ID passed on frontend commandline
Using IncludeTree::FileList to concat the include tree file systems that are passed on the command-line. This significantly reduce the command-line size, and also makes the cache key computation a lot faster. rdar://148752988
This commit is contained in:
@@ -630,11 +630,11 @@ bool CompilerInstance::setUpVirtualFileSystemOverlays() {
|
||||
}
|
||||
|
||||
if (Invocation.getCASOptions().requireCASFS()) {
|
||||
if (!CASOpts.CASFSRootIDs.empty() || !CASOpts.ClangIncludeTrees.empty() ||
|
||||
if (!CASOpts.CASFSRootIDs.empty() || !CASOpts.ClangIncludeTree.empty() ||
|
||||
!CASOpts.ClangIncludeTreeFileList.empty()) {
|
||||
// Set up CASFS as BaseFS.
|
||||
auto FS = createCASFileSystem(*CAS, CASOpts.CASFSRootIDs,
|
||||
CASOpts.ClangIncludeTrees,
|
||||
CASOpts.ClangIncludeTree,
|
||||
CASOpts.ClangIncludeTreeFileList);
|
||||
if (!FS) {
|
||||
Diagnostics.diagnose(SourceLoc(), diag::error_cas_fs_creation,
|
||||
|
||||
Reference in New Issue
Block a user