diff --git a/build.gradle.kts b/build.gradle.kts index a439ad91..b586e25c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,4 +1,5 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinJsCompile +import org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompile import org.jetbrains.kotlin.gradle.dsl.KotlinVersion import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask @@ -57,10 +58,14 @@ allprojects { compilerOptions { freeCompilerArgs.add("-Xwasm-enable-array-range-checks") } + } else if (this is KotlinJvmCompile) { + compilerOptions { + freeCompilerArgs.add("-jvm-default=disable") + } } } } tasks.withType().configureEach { args.add("--ignore-engines") -} \ No newline at end of file +}