Remove 'useIR' from Gradle options
^KT-49011 In Progress
This commit is contained in:
-2
@@ -95,8 +95,6 @@ class K2JVMCompilerArguments : CommonCompilerArguments() {
|
|||||||
|
|
||||||
// Advanced options
|
// Advanced options
|
||||||
|
|
||||||
@GradleDeprecatedOption(removeAfter = "1.6", level = DeprecationLevel.HIDDEN)
|
|
||||||
@GradleOption(DefaultValues.BooleanFalseDefault::class)
|
|
||||||
@Argument(
|
@Argument(
|
||||||
value = "-Xuse-ir",
|
value = "-Xuse-ir",
|
||||||
description = "Use the IR backend. This option has no effect unless the language version less than 1.5 is used"
|
description = "Use the IR backend. This option has no effect unless the language version less than 1.5 is used"
|
||||||
|
|||||||
-7
@@ -44,13 +44,6 @@ 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)
|
@Deprecated(message = "This option has no effect and will be removed in a future release.", level = DeprecationLevel.ERROR)
|
||||||
var noStdlib: kotlin.Boolean
|
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
|
* Use the old JVM backend
|
||||||
* Default value: false
|
* Default value: false
|
||||||
|
|||||||
-10
@@ -66,14 +66,6 @@ internal abstract class KotlinJvmOptionsBase : org.jetbrains.kotlin.gradle.dsl.K
|
|||||||
noStdlibField = value
|
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
|
private var useOldBackendField: kotlin.Boolean? = null
|
||||||
override var useOldBackend: kotlin.Boolean
|
override var useOldBackend: kotlin.Boolean
|
||||||
get() = useOldBackendField ?: false
|
get() = useOldBackendField ?: false
|
||||||
@@ -94,7 +86,6 @@ internal abstract class KotlinJvmOptionsBase : org.jetbrains.kotlin.gradle.dsl.K
|
|||||||
moduleName?.let { args.moduleName = it }
|
moduleName?.let { args.moduleName = it }
|
||||||
noJdkField?.let { args.noJdk = it }
|
noJdkField?.let { args.noJdk = it }
|
||||||
noStdlibField?.let { args.noStdlib = it }
|
noStdlibField?.let { args.noStdlib = it }
|
||||||
useIRField?.let { args.useIR = it }
|
|
||||||
useOldBackendField?.let { args.useOldBackend = it }
|
useOldBackendField?.let { args.useOldBackend = it }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -112,6 +103,5 @@ internal fun org.jetbrains.kotlin.cli.common.arguments.K2JVMCompilerArguments.fi
|
|||||||
moduleName = null
|
moduleName = null
|
||||||
noJdk = false
|
noJdk = false
|
||||||
noStdlib = true
|
noStdlib = true
|
||||||
useIR = false
|
|
||||||
useOldBackend = false
|
useOldBackend = false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user