FIR: fix check for plugins that support K2
This commit is contained in:
+1
-1
@@ -88,7 +88,7 @@ object FirKotlinToJvmBytecodeCompiler {
|
|||||||
|
|
||||||
projectConfiguration.get(ComponentRegistrar.PLUGIN_COMPONENT_REGISTRARS)?.let { pluginComponentRegistrars ->
|
projectConfiguration.get(ComponentRegistrar.PLUGIN_COMPONENT_REGISTRARS)?.let { pluginComponentRegistrars ->
|
||||||
val notSupportedPlugins = pluginComponentRegistrars.filter {
|
val notSupportedPlugins = pluginComponentRegistrars.filter {
|
||||||
!it.supportsK2 || it::class.java.canonicalName != CLICompiler.SCRIPT_PLUGIN_REGISTRAR_NAME
|
!it.supportsK2 && it::class.java.canonicalName != CLICompiler.SCRIPT_PLUGIN_REGISTRAR_NAME
|
||||||
}
|
}
|
||||||
if (notSupportedPlugins.isNotEmpty()) {
|
if (notSupportedPlugins.isNotEmpty()) {
|
||||||
messageCollector.report(
|
messageCollector.report(
|
||||||
|
|||||||
Reference in New Issue
Block a user