diff options
author | Alexander Likhachev <ALikhachev@users.noreply.github.com> | 2020-11-17 13:09:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-17 13:09:24 +0300 |
commit | 2e565429a1b57733511c2863199c6b4ffee3e2db (patch) | |
tree | ae0e1c6817582ec1af8dc209dc049cdedd8cd8c1 /build.gradle | |
parent | 31f646aad64fbd1700fec1269207d1507f3c1f27 (diff) | |
download | kotlinx.serialization-2e565429a1b57733511c2863199c6b4ffee3e2db.tar.gz |
Add build parameter to build serialization with JVM IR compiler (#1206)
Build with -Penable_jvm_ir enables JVM IR compiler
Build with -Penable_jvm_ir_api_check enables JVM IR API check (works only if enable_jvm_ir is set)
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle index f1cd0012..83346e98 100644 --- a/build.gradle +++ b/build.gradle @@ -42,6 +42,9 @@ buildscript { maven { url "https://bintray.com/jetbrains/kotlin-native-dependencies" } } } + // These two flags are enabled in train builds for JVM IR compiler testing + ext.jvm_ir_enabled = rootProject.properties['enable_jvm_ir'] != null + ext.jvm_ir_api_check_enabled = rootProject.properties['enable_jvm_ir_api_check'] != null repositories { mavenLocal() @@ -171,3 +174,14 @@ subprojects { apply from: rootProject.file('gradle/compiler-version.gradle') apply from: rootProject.file("gradle/dokka.gradle") + +// Disable binary compatibility check for JVM IR compiler output by default +if (jvm_ir_enabled) { + subprojects { project -> + afterEvaluate { + configure(tasks.matching { it.name == "apiCheck" }) { + enabled = enabled && jvm_ir_api_check_enabled + } + } + } +}
\ No newline at end of file |