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 -> ext.configureJvmIrBackend = { Project project ->
project.tasks.withType(KotlinCompile.class) { task -> project.tasks.withType(KotlinCompile.class) { task ->
task.kotlinOptions { task.kotlinOptions {
useIR = project.kotlinBuildProperties.useIRForLibraries if (!project.kotlinBuildProperties.useIRForLibraries) {
freeCompilerArgs += "-Xuse-old-backend" useIR = false
freeCompilerArgs += "-Xuse-old-backend"
}
} }
} }
} }