[Dependency Scanning] Add support for placing explicitly-built SDK modules into a separate module cache

With '-sdk-module-cache-path', Swift textual interfaces found in the SDK will be built into a separate SDK-specific module cache.
Clang modules are not yet affected by this change, pending addition of the required API.
This commit is contained in:
Artem Chikin
2025-02-28 11:05:33 -08:00
parent aeeeb81b60
commit 88dec5199e
20 changed files with 108 additions and 35 deletions

View File

@@ -264,7 +264,7 @@ public:
virtual void verifyAllModules() override;
virtual llvm::SmallVector<std::pair<ModuleDependencyID, ModuleDependencyInfo>, 1>
getModuleDependencies(Identifier moduleName, StringRef moduleOutputPath,
getModuleDependencies(Identifier moduleName, StringRef moduleOutputPath, StringRef sdkModuleOutputPath,
const llvm::DenseSet<clang::tooling::dependencies::ModuleID> &alreadySeenClangModules,
clang::tooling::dependencies::DependencyScanningTool &clangScanningTool,
InterfaceSubContextDelegate &delegate,