Add -Xno-use-ir to compiler modules where JVM IR currently fails

This option has no effect on the production code. But in a custom
scenario of a local bootstrap, where the compiler is replaced with the
one where JVM IR backend is enabled by default, this option allows to
switch back to the old backend.

All of these arguments (except the one for compiling experimental
coroutines) are supposed to go away as soon as we fix related problems
in the JVM IR backend.
This commit is contained in:
Alexander Udalov
2020-01-14 20:29:43 +01:00
parent af71955fde
commit c3d5a88e52
7 changed files with 21 additions and 3 deletions
@@ -42,3 +42,6 @@ sourceSets {
"main" { projectDefault() }
"test" {}
}
val compileKotlin: org.jetbrains.kotlin.gradle.tasks.KotlinCompile by tasks
compileKotlin.kotlinOptions.freeCompilerArgs += "-Xno-use-ir"
+4 -1
View File
@@ -17,4 +17,7 @@ dependencies {
sourceSets {
"main" { projectDefault() }
"test" {}
}
}
val compileKotlin: org.jetbrains.kotlin.gradle.tasks.KotlinCompile by tasks
compileKotlin.kotlinOptions.freeCompilerArgs += "-Xno-use-ir"
+3
View File
@@ -23,3 +23,6 @@ sourceSets {
"main" { projectDefault() }
"test" {}
}
val compileKotlin: org.jetbrains.kotlin.gradle.tasks.KotlinCompile by tasks
compileKotlin.kotlinOptions.freeCompilerArgs += "-Xno-use-ir"
+2
View File
@@ -15,3 +15,5 @@ sourceSets {
"test" {}
}
val compileKotlin: org.jetbrains.kotlin.gradle.tasks.KotlinCompile by tasks
compileKotlin.kotlinOptions.freeCompilerArgs += "-Xno-use-ir"
@@ -22,4 +22,7 @@ dependencies {
sourceSets {
"main" { projectDefault() }
"test" { none() }
}
}
val compileKotlin: org.jetbrains.kotlin.gradle.tasks.KotlinCompile by tasks
compileKotlin.kotlinOptions.freeCompilerArgs += "-Xno-use-ir"
+1
View File
@@ -194,6 +194,7 @@ compileCoroutinesExperimentalKotlin {
"-Xuse-experimental=kotlin.Experimental",
"-Xcoroutines=enable",
"-XXLanguage:-ReleaseCoroutines",
"-Xno-use-ir",
"-module-name", "kotlin-stdlib-coroutines"
]
}
+4 -1
View File
@@ -23,4 +23,7 @@ testsJar()
projectTest {
workingDir = rootDir
dependsOn(":dist")
}
}
val compileKotlin: org.jetbrains.kotlin.gradle.tasks.KotlinCompile by tasks
compileKotlin.kotlinOptions.freeCompilerArgs += "-Xno-use-ir"