summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Ruban <stanislav.ruban@jetbrains.com>2023-11-16 18:50:17 +0200
committerGitHub <noreply@github.com>2023-11-16 17:50:17 +0100
commit31d779f180991b89d4b6ccaa9ef62eae3cf969dd (patch)
tree3026c0be2a65d4038c58e6238989dad48dd6b017
parent8b8c4f8324c19f0219015b60974111dffe1e0376 (diff)
downloadkotlinx.serialization-31d779f180991b89d4b6ccaa9ef62eae3cf969dd.tar.gz
Enable error loglevel for partial linkage messages (#2507)
The change is related to building serialization as a Kotlin user project. See https://youtrack.jetbrains.com/issue/QA-1115 for more details.
-rw-r--r--build.gradle7
1 files changed, 7 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index 983e791b..207c1157 100644
--- a/build.gradle
+++ b/build.gradle
@@ -168,6 +168,13 @@ allprojects {
mavenLocal()
}
+
+ tasks.withType(org.jetbrains.kotlin.gradle.tasks.Kotlin2JsCompile).configureEach {
+ compilerOptions { freeCompilerArgs.add("-Xpartial-linkage-loglevel=ERROR") }
+ }
+ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinNativeCompile).configureEach {
+ compilerOptions { freeCompilerArgs.add("-Xpartial-linkage-loglevel=ERROR") }
+ }
}
def unpublishedProjects = ["benchmark", "guide", "kotlinx-serialization-json-tests"] as Set