mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Macros] Track plugin dependencies
* Factor out ASTContext plugin loading to newly introduced 'PluginLoader' * Insert 'DependencyTracker' to 'PluginLoader' * Add dependencies right before loading the plugins rdar://104938481
This commit is contained in:
@@ -759,10 +759,6 @@ bool swift::emitLoadedModuleTraceIfNeeded(ModuleDecl *mainModule,
|
||||
std::make_pair(loadedDecl->getModuleFilename(), loadedDecl));
|
||||
}
|
||||
|
||||
// Add compiler plugin libraries as dependencies.
|
||||
for (auto &pluginEntry : ctxt.getLoadedPluginLibraryPaths())
|
||||
depTracker->addDependency(pluginEntry.getKey(), /*IsSystem*/ false);
|
||||
|
||||
std::vector<SwiftModuleTraceInfo> swiftModules;
|
||||
computeSwiftModuleTraceInfo(ctxt, abiDependencies, pathToModuleDecl,
|
||||
*depTracker, opts.PrebuiltModuleCachePath,
|
||||
|
||||
Reference in New Issue
Block a user