Convert property initializer to getter in

JvmPlatforms.unspecifiedJvmPlatform

This unties static initialization loop which lead to NCDFE and other
issues.
This commit is contained in:
Dmitry Savvinov
2019-05-28 15:56:39 +03:00
parent aeb7f8400a
commit 893ac735bc
@@ -26,7 +26,8 @@ object JvmPlatforms {
// as previously some clients used TargetPlatform just as platform-marker
// and didn't care about particular jvmTarget.
// TODO(dsavvinov): review all usages and choose proper JvmTarget
val unspecifiedJvmPlatform: TargetPlatform = CompatJvmPlatform
val unspecifiedJvmPlatform: TargetPlatform
get() = CompatJvmPlatform
val defaultJvmPlatform: TargetPlatform = jvmTargetToJdkPlatform[JvmTarget.DEFAULT]!!