From 1d14c6e7e31566892cda15148272e5bd4658ef88 Mon Sep 17 00:00:00 2001 From: Dmitry Savvinov Date: Thu, 23 May 2019 18:31:42 +0300 Subject: [PATCH] Introduce unspecifiedJvmPlatform for clients without jvmTarget Previously, a lot of clients used JvmPlatform as platform-marker, without thinking about jvmTarget. For the sake of migration, this commits introduced so-called UnspecifiedJvmPlatform, which can be used for a time being, but generally, all usages should be removed in future. Original commit: 8997fa52dff001e7afca7a390baf189618307900 --- .../org/jetbrains/kotlin/platform/impl/JvmIdePlatformKind.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jps/jps-common/src/org/jetbrains/kotlin/platform/impl/JvmIdePlatformKind.kt b/jps/jps-common/src/org/jetbrains/kotlin/platform/impl/JvmIdePlatformKind.kt index d996cb294f8..92fe6a38596 100644 --- a/jps/jps-common/src/org/jetbrains/kotlin/platform/impl/JvmIdePlatformKind.kt +++ b/jps/jps-common/src/org/jetbrains/kotlin/platform/impl/JvmIdePlatformKind.kt @@ -42,7 +42,7 @@ object JvmIdePlatformKind : IdePlatformKind() { return K2JVMCompilerArguments() } - override val platforms: List = JvmTarget.values().map { ver -> JvmPlatforms.jvmPlatformByTargetVersion(ver) } + listOf(JvmPlatforms.defaultJvmPlatform) + override val platforms: List = JvmTarget.values().map { ver -> JvmPlatforms.jvmPlatformByTargetVersion(ver) } + listOf(JvmPlatforms.unspecifiedJvmPlatform) override val defaultPlatform get() = JvmPlatforms.defaultJvmPlatform override val argumentsClass get() = K2JVMCompilerArguments::class.java