[CAS] Do not create redirect file system when using clang-include-tree

Redirecting file system can canonicalize the file path before forwarding
the path to IncludeTreeFileSystem, which is a simplied FS that can only
intepret the paths that has been seen by dep-scanner. Since all files
that need redirecting already added to underlying FS via DepScan, there
is no need for such layer when compiling using clang-include-tree.

rdar://119727344
This commit is contained in:
Steven Wu
2023-12-18 11:57:12 -08:00
parent 260874652e
commit ead742b8f1
8 changed files with 114 additions and 27 deletions

View File

@@ -1687,6 +1687,7 @@ static bool ParseClangImporterArgs(ClangImporterOptions &Opts, ArgList &Args,
// Only set UseClangIncludeTree when caching is enabled since it is not
// useful in non-caching context.
Opts.UseClangIncludeTree = !Args.hasArg(OPT_no_clang_include_tree);
Opts.HasClangIncludeTreeRoot = Args.hasArg(OPT_clang_include_tree_root);
}
return false;