[Caching] Switch clang-include-tree to be default for clang modules

Switch to use clang-include-tree by default for clang module
building/caching when using a CAS. This is the default mode for clang
module and has less issues than CAS file system based implementation.
This commit is contained in:
Steven Wu
2023-11-06 14:53:24 -08:00
parent a09052f2a7
commit 109566fb81
9 changed files with 22 additions and 20 deletions

View File

@@ -1655,10 +1655,9 @@ void InterfaceSubContextDelegateImpl::inheritOptionsForBuildingInterface(
}
}
if (clangImporterOpts.UseClangIncludeTree) {
genericSubInvocation.getClangImporterOptions().UseClangIncludeTree =
clangImporterOpts.UseClangIncludeTree;
GenericArgs.push_back("-clang-include-tree");
if (!clangImporterOpts.UseClangIncludeTree) {
genericSubInvocation.getClangImporterOptions().UseClangIncludeTree = false;
GenericArgs.push_back("-no-clang-include-tree");
}
}