JVM IR: add flag to avoid loading dependency module headers
This is an addition to d16f33cf5b. Apparently there's another call site
of JvmIrCodegenFactory in intellij besides Evaluate Expression, namely
Android LiveEdit plugin, where it seems needed to collect all dependency
modules and resolve them via linker. LiveEdit also uses
shouldStubAndNotLinkUnboundSymbols = true, so we need to differentiate
between it and Evaluate Expression, hence the new flag. This new flag
will be set to true only for Evaluate Expression in intellij.
#IDEA-329915
This commit is contained in:
committed by
Space Team
parent
f16ea9dfbb
commit
cadbc87dfd
+2
-1
@@ -106,6 +106,7 @@ open class JvmIrCodegenFactory(
|
||||
val shouldStubOrphanedExpectSymbols: Boolean = false,
|
||||
val shouldReferenceUndiscoveredExpectSymbols: Boolean = false,
|
||||
val shouldDeduplicateBuiltInSymbols: Boolean = false,
|
||||
val doNotLoadDependencyModuleHeaders: Boolean = false,
|
||||
)
|
||||
|
||||
data class JvmIrBackendInput(
|
||||
@@ -230,7 +231,7 @@ open class JvmIrCodegenFactory(
|
||||
}
|
||||
}
|
||||
|
||||
val dependencies = if (ideCodegenSettings.shouldStubAndNotLinkUnboundSymbols) {
|
||||
val dependencies = if (ideCodegenSettings.doNotLoadDependencyModuleHeaders) {
|
||||
emptyList()
|
||||
} else {
|
||||
psi2irContext.moduleDescriptor.collectAllDependencyModulesTransitively().map {
|
||||
|
||||
Reference in New Issue
Block a user