[CLI] Report compilation error if compiler plugins are enabled alongside with K2 compiler

^KT-52037 Fixed
This commit is contained in:
Dmitriy Novozhilov
2022-04-26 11:48:18 +04:00
parent e5bfb8295e
commit 19f4c3edda
6 changed files with 49 additions and 3 deletions
+10
View File
@@ -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
+8
View File
@@ -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") }
}
+6
View File
@@ -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