Skip to content

Commit fb183ec

Browse files
committedSep 15, 2020
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.
1 parent f6187b9 commit fb183ec

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed
 

‎libraries/stdlib/coroutines-experimental/build.gradle.kts

+7-2
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,19 @@ tasks {
6060
kotlinOptions {
6161
languageVersion = "1.2"
6262
apiVersion = "1.2"
63-
freeCompilerArgs = listOf("-Xcoroutines=enable")
63+
freeCompilerArgs = listOf(
64+
"-Xcoroutines=enable",
65+
"-Xno-use-ir"
66+
)
6467
}
6568
}
6669
val compileMigrationTestKotlin by existing(KotlinCompile::class) {
6770
kotlinOptions {
6871
languageVersion = "1.3"
6972
apiVersion = "1.3"
70-
freeCompilerArgs = listOf()
73+
freeCompilerArgs = listOf(
74+
"-Xno-use-ir"
75+
)
7176
}
7277
}
7378

0 commit comments

Comments
 (0)
Please sign in to comment.