Skip to content

Commit

Permalink
Process compiled modules with testable packages for marking test depe…
Browse files Browse the repository at this point in the history
…ndencies
  • Loading branch information
chiranSachintha committed Nov 26, 2024
1 parent b341719 commit 76b177b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,9 @@ protected Set<PackageID> getOptimizedPackageIDs() {
private void markTestDependenciesForDuplicateBIRGen() {
for (int i = pkgResolution.topologicallySortedModuleList().size() - 1; i >= 0; i--) {
ModuleContext moduleContext = pkgResolution.topologicallySortedModuleList().get(i);
if (moduleContext.compilationState() != ModuleCompilationState.COMPILED) {
continue;
}
BLangPackage bLangPackage = moduleContext.bLangPackage();

if (isRootModule(moduleContext) && bLangPackage.hasTestablePackage()) {
Expand Down

0 comments on commit 76b177b

Please sign in to comment.