Fix: Rebuild common or native module with Delegate to gradle does nothing

Issues #KT-27295:fixed, #KT-27296:fixed

Original commit: af4c2b8030
This commit is contained in:
Dmitriy Dolovov
2018-12-17 17:00:04 +07:00
parent 729bf6dc3d
commit 7c7e9eb72d
@@ -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<NativeIdePlatformKind>() {
// 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