Enable contracts in the 'compiler' module
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
|
||||
import java.io.File
|
||||
import org.gradle.api.tasks.bundling.Jar
|
||||
import org.jetbrains.kotlin.gradle.dsl.KotlinCompile
|
||||
|
||||
apply { plugin("kotlin") }
|
||||
|
||||
@@ -9,6 +10,18 @@ jvmTarget = "1.6"
|
||||
val compilerModules: Array<String> by rootProject.extra
|
||||
val otherCompilerModules = compilerModules.filter { it != path }
|
||||
|
||||
val effectSystemEnabled: Boolean by rootProject.extra
|
||||
if (effectSystemEnabled) {
|
||||
allprojects {
|
||||
tasks.withType<KotlinCompile<*>> {
|
||||
kotlinOptions {
|
||||
freeCompilerArgs += listOf("-Xeffect-system")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
val depDistProjects = listOf(
|
||||
":kotlin-script-runtime",
|
||||
":kotlin-stdlib",
|
||||
|
||||
Reference in New Issue
Block a user