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:
@@ -26,7 +26,8 @@ object JvmPlatforms {
|
|||||||
// as previously some clients used TargetPlatform just as platform-marker
|
// as previously some clients used TargetPlatform just as platform-marker
|
||||||
// and didn't care about particular jvmTarget.
|
// and didn't care about particular jvmTarget.
|
||||||
// TODO(dsavvinov): review all usages and choose proper 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]!!
|
val defaultJvmPlatform: TargetPlatform = jvmTargetToJdkPlatform[JvmTarget.DEFAULT]!!
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user