[Dependency Scan] On cross-import overlay discovery, do not exit on main module...

This commit is contained in:
Artem Chikin
2023-10-27 15:30:01 -07:00
parent be11dc6101
commit abec212b60
4 changed files with 10 additions and 3 deletions

View File

@@ -800,7 +800,7 @@ void ModuleDependencyScanner::discoverCrossImportOverlayDependencies(
auto moduleName = dependencyId.ModuleName;
// Do not look for overlays of main module under scan
if (moduleName == mainModuleName)
return;
continue;
// check if any explicitly imported modules can serve as a
// secondary module, and add the overlay names to the
// dependencies list.