Fix arguments processing with scripting with old backend by default
This commit is contained in:
@@ -203,7 +203,7 @@ fun CompilerConfiguration.configureAdvancedJvmOptions(arguments: K2JVMCompilerAr
|
|||||||
put(JVMConfigurationKeys.PARAMETERS_METADATA, arguments.javaParameters)
|
put(JVMConfigurationKeys.PARAMETERS_METADATA, arguments.javaParameters)
|
||||||
|
|
||||||
// TODO: ignore previous configuration value when we do not need old backend in scripting by default
|
// TODO: ignore previous configuration value when we do not need old backend in scripting by default
|
||||||
val useOldBackend = arguments.useOldBackend || get(JVMConfigurationKeys.IR) == false
|
val useOldBackend = arguments.useOldBackend || (!arguments.useIR && get(JVMConfigurationKeys.IR) == false)
|
||||||
val useIR = arguments.useFir ||
|
val useIR = arguments.useFir ||
|
||||||
if (languageVersionSettings.supportsFeature(LanguageFeature.JvmIrEnabledByDefault)) {
|
if (languageVersionSettings.supportsFeature(LanguageFeature.JvmIrEnabledByDefault)) {
|
||||||
!useOldBackend
|
!useOldBackend
|
||||||
|
|||||||
Reference in New Issue
Block a user