Enable jvm 1.8 platform in cli

This commit is contained in:
Mikhael Bogdanov
2017-01-12 16:03:11 +01:00
parent b6bf53f96f
commit 62514e126d
2 changed files with 1 additions and 7 deletions
@@ -129,12 +129,7 @@ class K2JVMCompiler : CLICompiler<K2JVMCompilerArguments>() {
if (arguments.jvmTarget != null) {
val jvmTarget = JvmTarget.fromString(arguments.jvmTarget)
if (jvmTarget != null) {
if (jvmTarget == JvmTarget.JVM_1_8) {
val warning = "The -jvm-target option has no effect yet"
messageCollector.report(CompilerMessageSeverity.WARNING, warning, CompilerMessageLocation.NO_LOCATION)
}
//use default target for now
//configuration.put(JVMConfigurationKeys.JVM_TARGET, jvmTarget)
configuration.put(JVMConfigurationKeys.JVM_TARGET, jvmTarget)
}
else {
val errorMessage = "Unknown JVM target version: ${arguments.jvmTarget}\n" +