Fix -Xcommon-sources in native args
This commit is contained in:
committed by
Ilya Matveev
parent
a97f2bb992
commit
da1fcb008b
+3
-1
@@ -263,7 +263,9 @@ open class KotlinNativeCompile : AbstractCompile() {
|
||||
|
||||
// Sources.
|
||||
addAll(getSource().map { it.absolutePath })
|
||||
add("-Xcommon-sources=${commonSources.map { it.absolutePath }.joinToString(separator = ",")}")
|
||||
if (!commonSources.isEmpty) {
|
||||
add("-Xcommon-sources=${commonSources.map { it.absolutePath }.joinToString(separator = ",")}")
|
||||
}
|
||||
}
|
||||
|
||||
@TaskAction
|
||||
|
||||
Reference in New Issue
Block a user