Minor. Comments added
This commit is contained in:
@@ -148,7 +148,7 @@ interface KotlinTarget : Serializable {
|
|||||||
val compilations: Collection<KotlinCompilation>
|
val compilations: Collection<KotlinCompilation>
|
||||||
val testTasks: Collection<KotlinTestTask>
|
val testTasks: Collection<KotlinTestTask>
|
||||||
val jar: KotlinTargetJar?
|
val jar: KotlinTargetJar?
|
||||||
val konanArtifacts: List<KonanArtifactModel> // TODO: move K/N artifacts under KotlinNativeCompilationExtensions
|
val konanArtifacts: List<KonanArtifactModel>
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
const val METADATA_TARGET_NAME = "metadata"
|
const val METADATA_TARGET_NAME = "metadata"
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import org.gradle.api.Project
|
|||||||
|
|
||||||
// KT-29613, KT-29783
|
// KT-29613, KT-29783
|
||||||
object KotlinNativeHomeEvaluator {
|
object KotlinNativeHomeEvaluator {
|
||||||
|
// this property is defined in org.jetbrains.kotlin.gradle.plugin.mpp.AbstractKotlinNativeTargetPreset
|
||||||
private const val KOTLIN_NATIVE_HOME_PRIVATE_PROPERTY = "konanHome"
|
private const val KOTLIN_NATIVE_HOME_PRIVATE_PROPERTY = "konanHome"
|
||||||
|
|
||||||
private const val FALLBACK_ACCESSOR_CLASS = "org.jetbrains.kotlin.compilerRunner.KotlinNativeToolRunnerKt"
|
private const val FALLBACK_ACCESSOR_CLASS = "org.jetbrains.kotlin.compilerRunner.KotlinNativeToolRunnerKt"
|
||||||
|
|||||||
+1
-1
@@ -33,7 +33,7 @@ abstract class AbstractKotlinNativeTargetPreset<T : KotlinNativeTarget>(
|
|||||||
) : KotlinTargetPreset<T> {
|
) : KotlinTargetPreset<T> {
|
||||||
|
|
||||||
init {
|
init {
|
||||||
// This is required to obtain Kotlin/Native home in CLion plugin:
|
// This is required to obtain Kotlin/Native home in IDE plugin:
|
||||||
setupNativeHomePrivateProperty()
|
setupNativeHomePrivateProperty()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user