Remove obsolete compiler flag -Xuse-ir

This commit is contained in:
Alexander Udalov
2023-05-19 17:06:34 +02:00
committed by Space Team
parent 2951e0b955
commit 60016d3e5b
18 changed files with 3 additions and 77 deletions
@@ -133,7 +133,6 @@ internal fun reportArgumentsNotAllowed(
messageCollector,
reportingState,
K2JVMCompilerArguments::useJavac,
K2JVMCompilerArguments::useIR,
K2JVMCompilerArguments::useK2
)
@@ -81,14 +81,6 @@ class ScriptingCompilerPluginTest : TestCase() {
return KotlinCoreEnvironment.createForTests(disposable, configuration, EnvironmentConfigFiles.JVM_CONFIG_FILES)
}
fun testUseOldBackendPreservedOnOptionsUpdate() {
val configuration = KotlinTestUtils.newConfiguration(ConfigurationKind.NO_KOTLIN_REFLECT, TestJdkKind.FULL_JDK).apply {
put(JVMConfigurationKeys.IR, false)
updateWithCompilerOptions(emptyList())
}
Assert.assertEquals(configuration[JVMConfigurationKeys.IR], false)
}
fun testScriptResolverEnvironmentArgsParsing() {
val longStr = (1..100).joinToString("\\,") { """\" $it aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \\""" }