Rename -Xno-use-ir -> -Xuse-old-backend, add Gradle option

As soon as JVM IR is enabled by default (in language version 1.5), use
the CLI argument `-Xuse-old-backend` or Gradle option `useOldBackend` to
switch to the old JVM backend.
This commit is contained in:
Alexander Udalov
2020-12-30 21:33:48 +01:00
parent b8fb1ce83c
commit 22d0e5eb65
8 changed files with 43 additions and 20 deletions
@@ -51,7 +51,8 @@ tasks {
"-Xopt-in=kotlin.contracts.ExperimentalContracts",
"-Xcoroutines=enable",
"-XXLanguage:-ReleaseCoroutines",
"-Xno-use-ir"
"-Xno-use-ir",
"-Xuse-old-backend"
)
moduleName = "kotlin-coroutines-experimental-compat"
}
@@ -62,7 +63,8 @@ tasks {
apiVersion = "1.2"
freeCompilerArgs = listOf(
"-Xcoroutines=enable",
"-Xno-use-ir"
"-Xno-use-ir",
"-Xuse-old-backend"
)
}
}
@@ -71,7 +73,8 @@ tasks {
languageVersion = "1.3"
apiVersion = "1.3"
freeCompilerArgs = listOf(
"-Xno-use-ir"
"-Xno-use-ir",
"-Xuse-old-backend"
)
}
}