Skip to content

Commit 53ffd13

Browse files
Enable error loglevel for partial linkage messages (#317)
The change is related to building datetime as a Kotlin user project. See QA-1099 for more details.
1 parent f97034f commit 53ffd13

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.gradle.kts

+6
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,10 @@ allprojects {
2727
// outputs the compiler version to logs so we can check whether the train configuration applied
2828
kotlinOptions.freeCompilerArgs += "-version"
2929
}
30+
tasks.withType<org.jetbrains.kotlin.gradle.tasks.Kotlin2JsCompile>().configureEach {
31+
compilerOptions { freeCompilerArgs.add("-Xpartial-linkage-loglevel=ERROR") }
32+
}
33+
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinNativeCompile>().configureEach {
34+
compilerOptions { freeCompilerArgs.add("-Xpartial-linkage-loglevel=ERROR") }
35+
}
3036
}

0 commit comments

Comments
 (0)