Support 'jvm-target' in CLI

This commit is contained in:
Mikhael Bogdanov
2016-06-14 11:05:32 +03:00
parent 1c3ce93275
commit 3a8591a729
4 changed files with 9 additions and 0 deletions
@@ -128,6 +128,9 @@ class K2JVMCompiler : CLICompiler<K2JVMCompilerArguments>() {
if (friendPaths != null) {
configuration.put(JVMConfigurationKeys.FRIEND_PATHS, friendPaths)
}
if ("1.8".equals(arguments.jvmTarget)) {
configuration.put(JVMConfigurationKeys.JVM_8_TARGET, true)
}
putAdvancedOptions(configuration, arguments)