[JS IR] Pass dirty files into backend and load IR for them only

This commit is contained in:
Roman Artemev
2021-09-28 18:20:12 +03:00
committed by TeamCityServer
parent 43bfe2333c
commit 4bd6e8a034
2 changed files with 19 additions and 9 deletions
@@ -54,6 +54,7 @@ fun compile(
lowerPerModule: Boolean = false,
safeExternalBoolean: Boolean = false,
safeExternalBooleanDiagnostic: RuntimeDiagnostic? = null,
filesToLower: Set<String>? = null
): CompilerResult {
if (lowerPerModule) {
@@ -75,7 +76,7 @@ fun compile(
}
val (moduleFragment: IrModuleFragment, dependencyModules, irBuiltIns, symbolTable, deserializer, moduleToName) =
loadIr(depsDescriptors, irFactory, verifySignatures)
loadIr(depsDescriptors, irFactory, verifySignatures, filesToLower)
val mainModule = depsDescriptors.mainModule
val configuration = depsDescriptors.compilerConfiguration