• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2/*
3 * Copyright 2017-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
4 */
5
6ext.configureKotlin = { isMultiplatform ->
7    if (rootProject.ext.jvm_ir_enabled) {
8        println "Using JVM IR compiler for project $project.name"
9        if (isMultiplatform) {
10            kotlin.jvm().compilations.all {
11                kotlinOptions.useIR = true
12            }
13        } else {
14            kotlin.target.compilations.all {
15                kotlinOptions.useIR = true
16            }
17        }
18    }
19
20    kotlin.sourceSets.all {
21        languageSettings {
22            apiVersion = "1.4"
23            languageVersion = "1.4"
24            useExperimentalAnnotation("kotlin.Experimental")
25            useExperimentalAnnotation("kotlin.ExperimentalStdlibApi")
26        }
27    }
28}
29