Build: fix inaccurate change to the logic of useIRForLibraries
This commit is contained in:
@@ -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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user