Misc: Fix deserialization of CommonCompilerArguments.freeArgs
#KT-20938 Fixed
Original commit: cfad305826
This commit is contained in:
@@ -58,8 +58,7 @@ private fun readV1Config(element: Element): KotlinFacetSettings {
|
|||||||
val jvmArgumentsElement = compilerInfoElement?.getOptionBody("k2jvmCompilerArguments")
|
val jvmArgumentsElement = compilerInfoElement?.getOptionBody("k2jvmCompilerArguments")
|
||||||
val jsArgumentsElement = compilerInfoElement?.getOptionBody("k2jsCompilerArguments")
|
val jsArgumentsElement = compilerInfoElement?.getOptionBody("k2jsCompilerArguments")
|
||||||
|
|
||||||
val compilerArguments = targetPlatform.createCompilerArguments()
|
val compilerArguments = targetPlatform.createCompilerArguments { freeArgs = ArrayList() }
|
||||||
compilerArguments.freeArgs = ArrayList()
|
|
||||||
|
|
||||||
commonArgumentsElement?.let { XmlSerializer.deserializeInto(compilerArguments, it) }
|
commonArgumentsElement?.let { XmlSerializer.deserializeInto(compilerArguments, it) }
|
||||||
when (compilerArguments) {
|
when (compilerArguments) {
|
||||||
@@ -105,7 +104,7 @@ private fun readV2AndLaterConfig(element: Element): KotlinFacetSettings {
|
|||||||
XmlSerializer.deserializeInto(compilerSettings!!, it)
|
XmlSerializer.deserializeInto(compilerSettings!!, it)
|
||||||
}
|
}
|
||||||
element.getChild("compilerArguments")?.let {
|
element.getChild("compilerArguments")?.let {
|
||||||
compilerArguments = platformKind.createCompilerArguments()
|
compilerArguments = platformKind.createCompilerArguments { freeArgs = ArrayList() }
|
||||||
XmlSerializer.deserializeInto(compilerArguments!!, it)
|
XmlSerializer.deserializeInto(compilerArguments!!, it)
|
||||||
}
|
}
|
||||||
testOutputPath = element.getChild("testOutputPath")?.let {
|
testOutputPath = element.getChild("testOutputPath")?.let {
|
||||||
|
|||||||
Reference in New Issue
Block a user