File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -79,10 +79,13 @@ bool ModuleInterfaceBuilder::collectDepsForSerialization(
79
79
path::native (ResourcePath);
80
80
81
81
auto DTDeps = SubInstance.getDependencyTracker ()->getDependencies ();
82
- SmallVector<StringRef, 16 > InitialDepNames (DTDeps.begin (), DTDeps.end ());
83
- InitialDepNames.push_back (interfacePath);
84
- InitialDepNames.insert (InitialDepNames.end (),
85
- extraDependencies.begin (), extraDependencies.end ());
82
+ SmallVector<std::string, 16 > InitialDepNames (DTDeps.begin (), DTDeps.end ());
83
+ auto IncDeps = SubInstance.getDependencyTracker ()->getIncrementalDependencyPaths ();
84
+ InitialDepNames.append (IncDeps.begin (), IncDeps.end ());
85
+ InitialDepNames.push_back (interfacePath.str ());
86
+ for (const auto &extra : extraDependencies) {
87
+ InitialDepNames.push_back (extra.str ());
88
+ }
86
89
SmallString<128 > Scratch;
87
90
88
91
for (const auto &InitialDepName : InitialDepNames) {
Original file line number Diff line number Diff line change @@ -577,7 +577,11 @@ static void computeSwiftModuleTraceInfo(
577
577
path::replace_extension (modPath, swiftInterfaceExt);
578
578
};
579
579
580
- for (auto &depPath : depTracker.getDependencies ()) {
580
+ auto deps = depTracker.getDependencies ();
581
+ SmallVector<std::string, 16 > dependencies{deps.begin (), deps.end ()};
582
+ auto incrDeps = depTracker.getIncrementalDependencyPaths ();
583
+ dependencies.append (incrDeps.begin (), incrDeps.end ());
584
+ for (const auto &depPath : dependencies) {
581
585
582
586
// Decide if this is a swiftmodule based on the extension of the raw
583
587
// dependency path, as the true file may have a different one.
You can’t perform that action at this time.
0 commit comments