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.
|
// Sources.
|
||||||
addAll(getSource().map { it.absolutePath })
|
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
|
@TaskAction
|
||||||
|
|||||||
Reference in New Issue
Block a user