Always use default 1.6 build target unless of 'jvm-target' option

This commit is contained in:
Mikhael Bogdanov
2016-12-12 10:33:33 +01:00
parent ef662a5679
commit dc5c3a478c
14 changed files with 27 additions and 106 deletions
-1
View File
@@ -12,7 +12,6 @@ where advanced options include:
-Xadd-compiler-builtins Add definitions of built-in declarations to the compilation classpath (useful with -no-stdlib)
-Xload-builtins-from-dependencies
Load definitions of built-in declarations from module dependencies, instead of from the compiler
-Xinterface-compatibility Generate DefaultImpls classes for interfaces in JVM target bytecode version 1.8 for binary compatibility with 1.6
-Xno-inline Disable method inlining
-Xrepeat <count> Repeat compilation (for performance analysis)
-Xplugin <path> Load plugins from the given classpath
+6
View File
@@ -0,0 +1,6 @@
$TESTDATA_DIR$/jvm8Target.kt
-d
$TEMP_DIR$
-jvm-target
1.8
+7
View File
@@ -0,0 +1,7 @@
interface A {
fun test() = "OK"
}
fun main(args: Array<String>) {
println(object : A {}.test())
}
+2
View File
@@ -0,0 +1,2 @@
warning: the -jvm-target option has no effect yet
OK