mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Caching] Remove CASFS clang module implemenation
Remove the CASFS based clang module implemenation as it is not longer
used.
(cherry picked from commit 3c81c1ca9f)
This commit is contained in:
@@ -1815,13 +1815,6 @@ void InterfaceSubContextDelegateImpl::inheritOptionsForBuildingInterface(
|
||||
casOpts.HasImmutableFileSystem;
|
||||
casOpts.enumerateCASConfigurationFlags(
|
||||
[&](StringRef Arg) { GenericArgs.push_back(ArgSaver.save(Arg)); });
|
||||
// ClangIncludeTree is default on when caching is enabled.
|
||||
genericSubInvocation.getClangImporterOptions().UseClangIncludeTree = true;
|
||||
}
|
||||
|
||||
if (!clangImporterOpts.UseClangIncludeTree) {
|
||||
genericSubInvocation.getClangImporterOptions().UseClangIncludeTree = false;
|
||||
GenericArgs.push_back("-no-clang-include-tree");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2521,8 +2514,7 @@ struct ExplicitCASModuleLoader::Implementation {
|
||||
};
|
||||
for (auto &entry : ExplicitClangModuleMap) {
|
||||
const auto &moduleMapPath = entry.getValue().moduleMapPath;
|
||||
if (!moduleMapPath.empty() &&
|
||||
!Ctx.ClangImporterOpts.UseClangIncludeTree &&
|
||||
if (!moduleMapPath.empty() && !Ctx.CASOpts.EnableCaching &&
|
||||
moduleMapsSeen.find(moduleMapPath) == moduleMapsSeen.end()) {
|
||||
moduleMapsSeen.insert(moduleMapPath);
|
||||
extraClangArgs.push_back(
|
||||
|
||||
Reference in New Issue
Block a user