[JS IR BE] fix multimodule
This commit is contained in:
@@ -163,8 +163,8 @@ abstract class BasicIrBoxTest(
|
|||||||
runtimeFile.write(runtimeResult!!.generatedCode)
|
runtimeFile.write(runtimeResult!!.generatedCode)
|
||||||
}
|
}
|
||||||
|
|
||||||
val dependencyPaths = config.configuration[JSConfigurationKeys.LIBRARIES]!!
|
val dependencyNames = config.configuration[JSConfigurationKeys.LIBRARIES]!!.map { File(it).name }
|
||||||
val dependencies = listOf(runtimeResult!!.moduleDescriptor) + dependencyPaths.mapNotNull { compilationCache[it]?.moduleDescriptor }
|
val dependencies = listOf(runtimeResult!!.moduleDescriptor) + dependencyNames.mapNotNull { compilationCache[it]?.moduleDescriptor }
|
||||||
val irDependencies = listOf(runtimeResult!!.moduleFragment) + compilationCache.values.map { it.moduleFragment }
|
val irDependencies = listOf(runtimeResult!!.moduleFragment) + compilationCache.values.map { it.moduleFragment }
|
||||||
|
|
||||||
val result = compile(
|
val result = compile(
|
||||||
@@ -175,7 +175,7 @@ abstract class BasicIrBoxTest(
|
|||||||
dependencies,
|
dependencies,
|
||||||
irDependencies)
|
irDependencies)
|
||||||
|
|
||||||
compilationCache[outputFile.absolutePath.let { it.substring(0, it.length - 2)} + "meta.js"] = result
|
compilationCache[outputFile.name.replace(".js", ".meta.js")] = result
|
||||||
|
|
||||||
outputFile.write(result.generatedCode)
|
outputFile.write(result.generatedCode)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user