FIR LT: fix bootstrap compilation error

if the existing list in the FRIENDS_PATH config property created with
Arrays.asList, it contains non-extendable list, and attempt to use
addAll on it leads to an exception.
This commit is contained in:
Ilya Chernikov
2022-05-09 13:53:32 +02:00
parent 30b0b09faa
commit 6b09ace099
@@ -105,7 +105,7 @@ fun compileModulesUsingFrontendIrAndLightTree(
for (module in chunk) {
val moduleConfiguration = compilerConfiguration.copy().applyModuleProperties(module, buildFile).apply {
addAll(JVMConfigurationKeys.FRIEND_PATHS, module.getFriendPaths())
put(JVMConfigurationKeys.FRIEND_PATHS, module.getFriendPaths())
}
val platformSources = linkedSetOf<KtSourceFile>()
val commonSources = linkedSetOf<KtSourceFile>()