Restore KotlinCompilerVersion.IS_PRE_RELEASE
This commit is a slightly modified revert of 4f29c113.
IS_PRE_RELEASE allows to make LATEST_STABLE version behave as
experimental when this flag is set to true.
The general goal is to prepare fix of KT-62058; after this commit
one can do it by changing IS_PRE_RELEASE flag to true.
The fix of KT-62058 is planned to be done during bootstrapping.
This preparation and the future fix are parts of umbrella KT-61951.
This commit is contained in:
committed by
Space Team
parent
850201a65c
commit
156097fe17
@@ -6,10 +6,7 @@
|
||||
package org.jetbrains.kotlin.build
|
||||
|
||||
import org.jetbrains.kotlin.cli.common.arguments.CommonCompilerArguments
|
||||
import org.jetbrains.kotlin.config.ApiVersion
|
||||
import org.jetbrains.kotlin.config.LanguageVersion
|
||||
import org.jetbrains.kotlin.config.PluginClasspaths
|
||||
import org.jetbrains.kotlin.config.PluginClasspathsComparator
|
||||
import org.jetbrains.kotlin.config.*
|
||||
|
||||
abstract class BuildMetaInfo {
|
||||
enum class CustomKeys {
|
||||
@@ -74,7 +71,7 @@ abstract class BuildMetaInfo {
|
||||
val languageVersionSting = languageVersion.versionString
|
||||
resultMap[CustomKeys.LANGUAGE_VERSION_STRING.name] = languageVersionSting
|
||||
|
||||
val isEAP = !languageVersion.isStable
|
||||
val isEAP = languageVersion.isPreRelease()
|
||||
resultMap[CustomKeys.IS_EAP.name] = isEAP.toString()
|
||||
|
||||
val apiVersionString = args.apiVersion ?: languageVersionSting
|
||||
|
||||
Reference in New Issue
Block a user