diff --git a/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2NativeCompilerArguments.kt b/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2NativeCompilerArguments.kt index 3af22ed7f56..23397fb4e09 100644 --- a/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2NativeCompilerArguments.kt +++ b/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2NativeCompilerArguments.kt @@ -289,7 +289,7 @@ class K2NativeCompilerArguments : CommonCompilerArguments() { valueDescription = "", description = "Paths to output directories for refined modules (whose expects this module can actualize)" ) - var refinesPaths: String? = null + var refinesPaths: Array? = null @Argument(value = "-Xdebug-info-version", description = "generate debug info of given version (1, 2)") var debugInfoFormatVersion: String = "1" /* command line parser doesn't accept kotlin.Int type */ diff --git a/kotlin-native/backend.native/cli.bc/src/org/jetbrains/kotlin/cli/bc/K2Native.kt b/kotlin-native/backend.native/cli.bc/src/org/jetbrains/kotlin/cli/bc/K2Native.kt index b5671f4afca..ad8d240c796 100644 --- a/kotlin-native/backend.native/cli.bc/src/org/jetbrains/kotlin/cli/bc/K2Native.kt +++ b/kotlin-native/backend.native/cli.bc/src/org/jetbrains/kotlin/cli/bc/K2Native.kt @@ -257,7 +257,7 @@ class K2Native : CLICompiler() { put(FRIEND_MODULES, arguments.friendModules!!.split(File.pathSeparator).filterNot(String::isEmpty)) if(arguments.refinesPaths != null) - put(REFINES_MODULES, arguments.refinesPaths!!.split(File.pathSeparator).filterNot(String::isEmpty)) + put(REFINES_MODULES, arguments.refinesPaths!!.filterNot(String::isEmpty)) put(EXPORTED_LIBRARIES, selectExportedLibraries(configuration, arguments, outputKind)) put(INCLUDED_LIBRARIES, selectIncludes(configuration, arguments, outputKind)) diff --git a/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/native/tasks/KotlinNativeCompilerArgBuilder.kt b/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/native/tasks/KotlinNativeCompilerArgBuilder.kt index 08bdbb16878..f0b0b359e88 100644 --- a/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/native/tasks/KotlinNativeCompilerArgBuilder.kt +++ b/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/native/tasks/KotlinNativeCompilerArgBuilder.kt @@ -67,7 +67,7 @@ internal fun buildKotlinNativeKlibCompilerArgs( if (sharedCompilationData != null) { val refinesPaths = sharedCompilationData.refinesPaths.files if (refinesPaths.isNotEmpty()) { - addArg("-Xrefines-paths", refinesPaths.joinToString(File.pathSeparator) { it.absolutePath }) + addArg("-Xrefines-paths", refinesPaths.joinToString(separator = ",") { it.absolutePath }) } }