Revert "Remove obsolete kotlin.build.useIR flag"

This reverts commit 91e47f1fd7.
This commit is contained in:
Alexander Udalov
2021-05-28 19:52:57 +02:00
parent 67d48d0150
commit e0cc6d44a7
4 changed files with 17 additions and 2 deletions
@@ -89,6 +89,8 @@ class KotlinBuildProperties(
val localBootstrapPath: String? = getOrNull("bootstrap.local.path") as String?
val useIR: Boolean = getBoolean("kotlin.build.useIR")
val useIRForLibraries: Boolean = getBoolean("kotlin.build.useIRForLibraries")
val useFir: Boolean = getBoolean("kotlin.build.useFir")
+3 -1
View File
@@ -9,7 +9,9 @@ defaultSnapshotVersion=1.5.255-SNAPSHOT
kotlin.compiler.effectSystemEnabled=true
kotlin.compiler.newInferenceEnabled=true
# Enable JVM IR backend for kotlin-stdlib, kotlin-reflect, kotlin-test.
# Enable JVM IR backend for all modules except libraries such as kotlin-stdlib, kotlin-reflect, kotlin-test.
kotlin.build.useIR=true
# Enable JVM IR backend for the libraries mentioned above.
kotlin.build.useIRForLibraries=true
#maven.repository.mirror=http://repository.jetbrains.com/remote-repos/
+9
View File
@@ -120,6 +120,15 @@ allprojects {
}
}
if (findProperty("kotlin.build.useIR") == "true") {
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
useIR = true
freeCompilerArgs += ["-Xir-binary-with-stable-abi"]
}
}
}
setupHostAndTarget()
loadCommandLineProperties()
loadLocalProperties()
+3 -1
View File
@@ -34,4 +34,6 @@ ktorVersion=1.2.1
shadowVersion=5.1.0
metadataVersion=0.0.1-dev-10
kotlinNativeVersionInResources=true
# Uncomment to compile Kotlin/Native backend modules with JVM IR backend.
# kotlin.build.useIR=true
kotlinNativeVersionInResources=true