From fb183ec3f80e2a6409805cd54170309d2b471021 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Mon, 14 Sep 2020 13:51:41 +0200 Subject: [PATCH] Never use JVM IR to compile coroutines-experimental JVM IR backend doesn't support old coroutines, so we disable it via -Xno-use-ir, just as for the main source set. This option has no effect for the current master builds, but will be necessary once JVM IR is enabled project-wide. --- .../stdlib/coroutines-experimental/build.gradle.kts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libraries/stdlib/coroutines-experimental/build.gradle.kts b/libraries/stdlib/coroutines-experimental/build.gradle.kts index b60839b0281..0ebeb1b702e 100644 --- a/libraries/stdlib/coroutines-experimental/build.gradle.kts +++ b/libraries/stdlib/coroutines-experimental/build.gradle.kts @@ -60,14 +60,19 @@ tasks { kotlinOptions { languageVersion = "1.2" apiVersion = "1.2" - freeCompilerArgs = listOf("-Xcoroutines=enable") + freeCompilerArgs = listOf( + "-Xcoroutines=enable", + "-Xno-use-ir" + ) } } val compileMigrationTestKotlin by existing(KotlinCompile::class) { kotlinOptions { languageVersion = "1.3" apiVersion = "1.3" - freeCompilerArgs = listOf() + freeCompilerArgs = listOf( + "-Xno-use-ir" + ) } }