mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Serialization] Fix missing lookup of package-only dependencies in swiftmodule
I don't think this logic is used in practice without merge-modules. Let's still implement it for the configurations still using merge-modules and for general consistency.
This commit is contained in:
@@ -468,6 +468,10 @@ void ModuleFile::getImportedModules(SmallVectorImpl<ImportedModule> &results,
|
||||
continue;
|
||||
}
|
||||
|
||||
} else if (dep.isPackageOnly()) {
|
||||
if (!filter.contains(ModuleDecl::ImportFilterKind::PackageOnly))
|
||||
continue;
|
||||
|
||||
} else {
|
||||
if (!filter.contains(ModuleDecl::ImportFilterKind::Default))
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user