mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Macros] Track macro dependency separately in module trace
Macro plugins are not normal Swift modules, track them differently. Add "swiftmacros" field to the JSON file. rdar://118013482
This commit is contained in:
@@ -110,6 +110,9 @@ bool ExplicitModuleInterfaceBuilder::collectDepsForSerialization(
|
||||
auto IncDeps =
|
||||
Instance.getDependencyTracker()->getIncrementalDependencyPaths();
|
||||
InitialDepNames.append(IncDeps.begin(), IncDeps.end());
|
||||
auto MacroDeps =
|
||||
Instance.getDependencyTracker()->getMacroPluginDependencyPaths();
|
||||
InitialDepNames.append(MacroDeps.begin(), MacroDeps.end());
|
||||
InitialDepNames.push_back(interfacePath.str());
|
||||
for (const auto &extra : extraDependencies) {
|
||||
InitialDepNames.push_back(extra.str());
|
||||
|
||||
Reference in New Issue
Block a user