JVM IR: report all sources as outputs for .kotlin_module file

This fixes some tests for LV=1.5 in KotlinJpsBuildTest,
KotlinJpsBuildTestIncremental, IncrementalJvmJpsTestGenerated,
IncrementalCacheVersionChangedTestGenerated.

 #KT-42069 Fixed
This commit is contained in:
Alexander Udalov
2021-01-13 17:11:40 +01:00
committed by Dmitriy Novozhilov
parent f3393eae1b
commit d87d0cceae
2 changed files with 3 additions and 1 deletions
@@ -264,7 +264,7 @@ public class ClassFileFactory implements OutputFileCollection {
return new MultifileClassCodegenImpl(state, files, facadeFqName);
}
private void registerSourceFiles(Collection<KtFile> files) {
public void registerSourceFiles(@NotNull Collection<KtFile> files) {
sourceFiles.addAll(toIoFilesIgnoringNonPhysical(files));
}
@@ -177,6 +177,8 @@ class JvmIrCodegenFactory(private val phaseConfig: PhaseConfig) : CodegenFactory
context.typeMapper.mapType(context.referenceClass(descriptor).defaultType)
}
context.state.factory.registerSourceFiles(irModuleFragment.files.map(context.psiSourceManager::getKtFile))
JvmLower(context).lower(irModuleFragment)
for (generateMultifileFacade in listOf(true, false)) {