Fix K/N module compilation in MPP project imported from Gradle #KT-26688
This commit is contained in:
+1
-4
@@ -59,9 +59,6 @@ open class KotlinNativeCompile : DefaultTask() {
|
||||
val kotlinNativeVersion: String
|
||||
@Input get() = KonanCompilerDownloadTask.compilerVersion.toString()
|
||||
|
||||
val kotlinNativeHome: File
|
||||
@Input get() = project.file(project.konanHome)
|
||||
|
||||
// We manually register this property as output file or directory depending on output kind.
|
||||
@Internal
|
||||
val outputFile: Property<File> = project.objects.property(File::class.java)
|
||||
@@ -135,7 +132,7 @@ open class KotlinNativeCompile : DefaultTask() {
|
||||
|
||||
libraries.files.filter {
|
||||
// Support only klib files for now.
|
||||
it.extension == "klib" || !it.providedByCompiler
|
||||
it.extension == "klib" && !it.providedByCompiler
|
||||
}.forEach { library ->
|
||||
library.parent?.let { addArg("-r", it) }
|
||||
addArg("-l", library.nameWithoutExtension)
|
||||
|
||||
Reference in New Issue
Block a user