From 7c7e9eb72da066e77c83ddfb86cd16f2245a7e46 Mon Sep 17 00:00:00 2001 From: Dmitriy Dolovov Date: Mon, 17 Dec 2018 17:00:04 +0700 Subject: [PATCH] Fix: Rebuild common or native module with Delegate to gradle does nothing Issues #KT-27295:fixed, #KT-27296:fixed Original commit: af4c2b80308385c08b60e432041b8598fb531d2b --- .../jetbrains/kotlin/platform/impl/NativeIdePlatformKind.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jps/jps-common/src/org/jetbrains/kotlin/platform/impl/NativeIdePlatformKind.kt b/jps/jps-common/src/org/jetbrains/kotlin/platform/impl/NativeIdePlatformKind.kt index f0ea3b01d34..c53749c6331 100644 --- a/jps/jps-common/src/org/jetbrains/kotlin/platform/impl/NativeIdePlatformKind.kt +++ b/jps/jps-common/src/org/jetbrains/kotlin/platform/impl/NativeIdePlatformKind.kt @@ -3,6 +3,7 @@ * that can be found in the license/LICENSE.txt file. */ +@file:JvmName("NativeIdePlatformUtil") package org.jetbrains.kotlin.platform.impl import org.jetbrains.kotlin.cli.common.arguments.CommonCompilerArguments @@ -37,3 +38,8 @@ object NativeIdePlatformKind : IdePlatformKind() { // These are fake compiler arguments for Kotlin/Native - only for usage within IDEA plugin: class FakeK2NativeCompilerArguments : CommonCompilerArguments() +val IdePlatformKind<*>?.isKotlinNative + get() = this is NativeIdePlatformKind + +val IdePlatform<*, *>?.isKotlinNative + get() = this is NativeIdePlatformKind.Platform