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.
This commit is contained in:
@@ -147,8 +147,8 @@ ModuleDependencyVector ClangImporter::bridgeClangModuleDependencies(
|
||||
// Swift frontend option for input file path (Foo.modulemap).
|
||||
swiftArgs.push_back(remapPath(clangModuleDep.ClangModuleMapFile));
|
||||
|
||||
// Handle VFSOverlay. If include tree is used, there is no need for overlay.
|
||||
if (!ctx.ClangImporterOpts.UseClangIncludeTree) {
|
||||
// Handle VFSOverlay. If caching is enabled, there is no need for overlay.
|
||||
if (!ctx.CASOpts.EnableCaching) {
|
||||
for (auto &overlay : ctx.SearchPathOpts.VFSOverlayFiles) {
|
||||
swiftArgs.push_back("-vfsoverlay");
|
||||
swiftArgs.push_back(remapPath(overlay));
|
||||
@@ -217,12 +217,6 @@ ModuleDependencyVector ClangImporter::bridgeClangModuleDependencies(
|
||||
ctx.CASOpts.enumerateCASConfigurationFlags(
|
||||
[&](StringRef Arg) { swiftArgs.push_back(Arg.str()); });
|
||||
|
||||
if (!RootID.empty()) {
|
||||
swiftArgs.push_back("-no-clang-include-tree");
|
||||
swiftArgs.push_back("-cas-fs");
|
||||
swiftArgs.push_back(RootID);
|
||||
}
|
||||
|
||||
if (!IncludeTree.empty()) {
|
||||
swiftArgs.push_back("-clang-include-tree-root");
|
||||
swiftArgs.push_back(IncludeTree);
|
||||
@@ -324,11 +318,6 @@ void ClangImporter::getBridgingHeaderOptions(
|
||||
swiftArgs.push_back("-clang-include-tree-root");
|
||||
swiftArgs.push_back(*Tree);
|
||||
}
|
||||
if (auto CASFS = deps.CASFileSystemRootID) {
|
||||
swiftArgs.push_back("-no-clang-include-tree");
|
||||
swiftArgs.push_back("-cas-fs");
|
||||
swiftArgs.push_back(*CASFS);
|
||||
}
|
||||
}
|
||||
|
||||
ModuleDependencyVector
|
||||
|
||||
Reference in New Issue
Block a user