[CLI] Report compilation error if compiler plugins are enabled alongside with K2 compiler
^KT-52037 Fixed
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
-Xplugin=dist/kotlinc/lib/android-extensions-compiler.jar
|
||||
-P
|
||||
plugin\:org.jetbrains.kotlin.android\:package=com.myapp
|
||||
-P
|
||||
plugin\:org.jetbrains.kotlin.android\:variant=main;$TESTDATA_DIR$/androidPlugin/res
|
||||
$TESTDATA_DIR$/pluginSimple.kt
|
||||
$TESTDATA_DIR$/androidPlugin
|
||||
-Xuse-fir
|
||||
@@ -0,0 +1,8 @@
|
||||
import android.view.*
|
||||
import android.app.*
|
||||
import android.widget.*
|
||||
import kotlinx.android.synthetic.main.layout.*
|
||||
|
||||
class MyActivity : Activity() {
|
||||
init { textView.setText("Some text") }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
warning: ATTENTION!
|
||||
This build uses in-dev FIR:
|
||||
-Xuse-fir
|
||||
error: compiler plugins are enabled with K2 compiler.
|
||||
K2 does not support plugins yet, so please remove -Xuse-k2 flag
|
||||
COMPILATION_ERROR
|
||||
Reference in New Issue
Block a user