From b0f882f106f8d1397d258b38f0c63698210f7f23 Mon Sep 17 00:00:00 2001 From: Username404 Date: Tue, 29 Jun 2021 16:42:08 +0200 Subject: [PATCH] Add more kotlin compiler flags --- build.gradle.kts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 45e3dea..9b73777 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -180,9 +180,12 @@ allprojects { tasks { withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class) { with(kotlinOptions) { + // https://github.com/JetBrains/kotlin/blob/master/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2JVMCompilerArguments.kt freeCompilerArgs = listOf( "-Xjvm-default=all", "-Xlambdas=indy", - "-Xopt-in=kotlin.RequiresOptIn", "-Xextended-compiler-checks", "-progressive" + "-Xmultifile-parts-inherit", + "-Xparallel-backend-threads=0", "-Xno-param-assertions", "-Xno-call-assertions", + "-Xopt-in=kotlin.RequiresOptIn", "-Xextended-compiler-checks", "-Xassertions=jvm", "-progressive" ) jvmTarget = if (javaVer.toInt() < 9) "1.$javaVer" else javaVer languageVersion = (kotlinBaseVer.toDouble() + 0.1).toString()