diff options
author | Stanislav Ruban <stanislav.ruban@jetbrains.com> | 2023-11-16 18:50:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-16 17:50:17 +0100 |
commit | 31d779f180991b89d4b6ccaa9ef62eae3cf969dd (patch) | |
tree | 3026c0be2a65d4038c58e6238989dad48dd6b017 | |
parent | 8b8c4f8324c19f0219015b60974111dffe1e0376 (diff) | |
download | kotlinx.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.gradle | 7 |
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 |