Take K/N version into account in UP-TO-DATE checks for cinterop tasks
This commit is contained in:
committed by
Ilya Matveev
parent
524ae9df7d
commit
73138073f1
+17
@@ -777,6 +777,23 @@ class NewMultiplatformIT : BaseGradleIT() {
|
||||
assertTrue(output.contains("Dependent: Project print"), "No test output found")
|
||||
assertTrue(output.contains("Dependent: Published print"), "No test output found")
|
||||
}
|
||||
|
||||
// Check that changing the compiler version in properties causes interop reprocessing and source recompilation.
|
||||
build(":projectLibrary:build") {
|
||||
assertSuccessful()
|
||||
assertTasksUpToDate(
|
||||
":projectLibrary:cinteropStdio${host.capitalize()}",
|
||||
":projectLibrary:compileKotlin${host.capitalize()}"
|
||||
)
|
||||
}
|
||||
|
||||
build(":projectLibrary:build", "-Porg.jetbrains.kotlin.native.version=0.9.2") {
|
||||
assertSuccessful()
|
||||
assertTasksExecuted(
|
||||
":projectLibrary:cinteropStdio${host.capitalize()}",
|
||||
":projectLibrary:compileKotlin${host.capitalize()}"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+2
@@ -336,6 +336,8 @@ open class CInteropProcess: DefaultTask() {
|
||||
val extraOpts: List<String>
|
||||
@Input get() = settings.extraOpts
|
||||
|
||||
val kotlinNativeVersion: String
|
||||
@Input get() = project.konanVersion.toString()
|
||||
|
||||
// Task action.
|
||||
@TaskAction
|
||||
|
||||
Reference in New Issue
Block a user