Restore useIR Gradle option as HIDDEN (KT-45504)
This will allow to KEEP binary compatibility with the Compose plugin 1.0.1 for a bit longer Merge-request: KT-MR-4857
This commit is contained in:
+1
-1
@@ -97,7 +97,7 @@ class K2JVMCompilerArguments : CommonCompilerArguments() {
|
||||
|
||||
// Advanced options
|
||||
|
||||
@DeprecatedOption(removeAfter = "1.5", level = DeprecationLevel.WARNING)
|
||||
@DeprecatedOption(removeAfter = "1.6", level = DeprecationLevel.HIDDEN)
|
||||
@GradleOption(DefaultValues.BooleanFalseDefault::class)
|
||||
@Argument(
|
||||
value = "-Xuse-ir",
|
||||
|
||||
+7
@@ -44,6 +44,13 @@ interface KotlinJvmOptions : org.jetbrains.kotlin.gradle.dsl.KotlinCommonOption
|
||||
@Deprecated(message = "This option has no effect and will be removed in a future release.", level = DeprecationLevel.ERROR)
|
||||
var noStdlib: kotlin.Boolean
|
||||
|
||||
/**
|
||||
* 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.HIDDEN)
|
||||
var useIR: kotlin.Boolean
|
||||
|
||||
/**
|
||||
* Use the old JVM backend
|
||||
* Default value: false
|
||||
|
||||
+10
@@ -71,6 +71,14 @@ internal abstract class KotlinJvmOptionsBase : org.jetbrains.kotlin.gradle.dsl.K
|
||||
noStdlibField = value
|
||||
}
|
||||
|
||||
private var useIRField: kotlin.Boolean? = null
|
||||
@Deprecated(message = "This option has no effect and will be removed in a future release.", level = DeprecationLevel.HIDDEN)
|
||||
override var useIR: kotlin.Boolean
|
||||
get() = useIRField ?: false
|
||||
set(value) {
|
||||
useIRField = value
|
||||
}
|
||||
|
||||
private var useOldBackendField: kotlin.Boolean? = null
|
||||
override var useOldBackend: kotlin.Boolean
|
||||
get() = useOldBackendField ?: false
|
||||
@@ -91,6 +99,7 @@ internal abstract class KotlinJvmOptionsBase : org.jetbrains.kotlin.gradle.dsl.K
|
||||
moduleName?.let { args.moduleName = it }
|
||||
noJdkField?.let { args.noJdk = it }
|
||||
noStdlibField?.let { args.noStdlib = it }
|
||||
useIRField?.let { args.useIR = it }
|
||||
useOldBackendField?.let { args.useOldBackend = it }
|
||||
}
|
||||
}
|
||||
@@ -108,5 +117,6 @@ internal fun org.jetbrains.kotlin.cli.common.arguments.K2JVMCompilerArguments.fi
|
||||
moduleName = null
|
||||
noJdk = false
|
||||
noStdlib = true
|
||||
useIR = false
|
||||
useOldBackend = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user