diff --git a/tools/gradle-plugin/src/main/kotlin/KonanInteropTask.kt b/tools/gradle-plugin/src/main/kotlin/KonanInteropTask.kt index b76e8f2bb5e..c78058b0ba0 100644 --- a/tools/gradle-plugin/src/main/kotlin/KonanInteropTask.kt +++ b/tools/gradle-plugin/src/main/kotlin/KonanInteropTask.kt @@ -81,13 +81,17 @@ open class KonanInteropTask: DefaultTask() { addFileArgs("-h", headers) - addListArg("-copt", compilerOpts) + compilerOpts.forEach { + addArg("-copt", it) + } val linkerOpts = mutableListOf().apply { addAll(linkerOpts) } linkFiles.forEach { linkerOpts.addAll(it.files.map { it.canonicalPath }) } - addListArg("-lopt", linkerOpts) + linkerOpts.forEach { + addArg("-lopt", it) + } } }