Skip to content

Commit 31d779f

Browse files
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.
1 parent 8b8c4f8 commit 31d779f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,13 @@ allprojects {
168168
mavenLocal()
169169

170170
}
171+
172+
tasks.withType(org.jetbrains.kotlin.gradle.tasks.Kotlin2JsCompile).configureEach {
173+
compilerOptions { freeCompilerArgs.add("-Xpartial-linkage-loglevel=ERROR") }
174+
}
175+
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinNativeCompile).configureEach {
176+
compilerOptions { freeCompilerArgs.add("-Xpartial-linkage-loglevel=ERROR") }
177+
}
171178
}
172179

173180
def unpublishedProjects = ["benchmark", "guide", "kotlinx-serialization-json-tests"] as Set

0 commit comments

Comments
 (0)