Deprecate KotlinJvmOptions.useIR
Starting from language version 1.5, JVM IR is enabled by default, so this option has no effect. To rollback to the old JVM backend, the new option useOldBackend can be used. #KT-45504 Fixed
This commit is contained in:
+5
-1
@@ -84,8 +84,12 @@ class K2JVMCompilerArguments : CommonCompilerArguments() {
|
||||
|
||||
// Advanced options
|
||||
|
||||
@DeprecatedOption(removeAfter = "1.5", level = DeprecationLevel.WARNING)
|
||||
@GradleOption(DefaultValues.BooleanFalseDefault::class)
|
||||
@Argument(value = "-Xuse-ir", description = "Use the IR backend")
|
||||
@Argument(
|
||||
value = "-Xuse-ir",
|
||||
description = "Use the IR backend. This option has no effect unless the language version less than 1.5 is used"
|
||||
)
|
||||
var useIR: Boolean by FreezableVar(false)
|
||||
|
||||
@GradleOption(DefaultValues.BooleanFalseDefault::class)
|
||||
|
||||
+1
-1
@@ -126,7 +126,7 @@ where advanced options include:
|
||||
Suppress deprecation warning about deprecated JVM target versions
|
||||
-Xsuppress-missing-builtins-error
|
||||
Suppress the "cannot access built-in declaration" error (useful with -no-stdlib)
|
||||
-Xuse-ir Use the IR backend
|
||||
-Xuse-ir Use the IR backend. This option has no effect unless the language version less than 1.5 is used
|
||||
-Xuse-javac Use javac for Java source and class files analysis
|
||||
-Xuse-old-backend Use the old JVM backend
|
||||
-Xuse-old-class-files-reading Use old class files reading implementation. This may slow down the build and cause problems with Groovy interop.
|
||||
|
||||
+2
-1
@@ -57,9 +57,10 @@ interface KotlinJvmOptions : org.jetbrains.kotlin.gradle.dsl.KotlinCommonOption
|
||||
var noStdlib: kotlin.Boolean
|
||||
|
||||
/**
|
||||
* Use the IR backend
|
||||
* Use the IR backend. This option has no effect unless the language version less than 1.5 is used
|
||||
* Default value: false
|
||||
*/
|
||||
@Deprecated(message = "This option has no effect and will be removed in a future release.", level = DeprecationLevel.WARNING)
|
||||
var useIR: kotlin.Boolean
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user