Build: fix inaccurate change to the logic of useIRForLibraries

This commit is contained in:
Alexander Udalov
2021-01-29 19:12:48 +01:00
parent e9436da858
commit d8549d6292
+4 -2
View File
@@ -208,8 +208,10 @@ ext.configureLegacyPublishing = { Project project ->
ext.configureJvmIrBackend = { Project project ->
project.tasks.withType(KotlinCompile.class) { task ->
task.kotlinOptions {
useIR = project.kotlinBuildProperties.useIRForLibraries
freeCompilerArgs += "-Xuse-old-backend"
if (!project.kotlinBuildProperties.useIRForLibraries) {
useIR = false
freeCompilerArgs += "-Xuse-old-backend"
}
}
}
}