[JVM_IR] Allow to use irPluginContext when compiling for android
This problem is extensively described in `cadbc87dfd1ce3e63481ab90874ca8858878c55f` commit message. TLDR: compiler is also called from Android LiveEdit plugin where we want to be able to use compiler plugins. For that reason, we have two different flags in the compiler. One is only for "evaluate expression" (`doNotLoadDependencyModuleHeaders`) and the other for both LiveEdit plugin and "evaluate expression" (`shouldStubAndNotLinkUnboundSymbols)`. We want to forbid using compiler extensions for "evaluate expression" and allow for LiveEdit plugin. #KT-63695
This commit is contained in:
+1
-1
@@ -212,7 +212,7 @@ open class JvmIrCodegenFactory(
|
||||
psi2irContext.irBuiltIns,
|
||||
irLinker,
|
||||
messageLogger
|
||||
).takeIf { !ideCodegenSettings.shouldStubAndNotLinkUnboundSymbols }
|
||||
).takeIf { !ideCodegenSettings.doNotLoadDependencyModuleHeaders }
|
||||
if (pluginExtensions.isNotEmpty() && pluginContext != null) {
|
||||
for (extension in pluginExtensions) {
|
||||
if (psi2irContext.configuration.generateBodies ||
|
||||
|
||||
Reference in New Issue
Block a user