Do not emit pre-release flag if -Xskip-metadata-version-check is used

The -Xskip-metadata-version-check command line argument is supposed to be used
to avoid getting errors only; the side effect that it also caused compiler to
write the pre-release flag to binaries was a mistake and is fixed now
This commit is contained in:
Alexander Udalov
2017-01-11 16:45:51 +03:00
parent 8f9ce5d0f2
commit edb4fd1dfd
2 changed files with 3 additions and 4 deletions
@@ -38,7 +38,6 @@ import org.jetbrains.kotlin.compiler.plugin.PluginCliOptionProcessingException
import org.jetbrains.kotlin.compiler.plugin.cliPluginUsageString
import org.jetbrains.kotlin.config.*
import org.jetbrains.kotlin.load.java.JvmAbi
import org.jetbrains.kotlin.load.kotlin.DeserializedDescriptorResolver
import org.jetbrains.kotlin.load.kotlin.JvmMetadataVersion
import org.jetbrains.kotlin.load.kotlin.incremental.components.IncrementalCompilationComponents
import org.jetbrains.kotlin.script.KotlinScriptDefinitionFromAnnotatedTemplate
@@ -117,8 +116,6 @@ class K2JVMCompiler : CLICompiler<K2JVMCompilerArguments>() {
if (arguments.skipMetadataVersionCheck) {
JvmMetadataVersion.skipCheck = true
@Suppress("DEPRECATION")
DeserializedDescriptorResolver.IS_PRE_RELEASE = true
}
if (arguments.includeRuntime) {