Add -Xno-use-ir to compiler modules where JVM IR currently fails
This option has no effect on the production code. But in a custom scenario of a local bootstrap, where the compiler is replaced with the one where JVM IR backend is enabled by default, this option allows to switch back to the old backend. All of these arguments (except the one for compiling experimental coroutines) are supposed to go away as soon as we fix related problems in the JVM IR backend.
This commit is contained in:
@@ -42,3 +42,6 @@ sourceSets {
|
||||
"main" { projectDefault() }
|
||||
"test" {}
|
||||
}
|
||||
|
||||
val compileKotlin: org.jetbrains.kotlin.gradle.tasks.KotlinCompile by tasks
|
||||
compileKotlin.kotlinOptions.freeCompilerArgs += "-Xno-use-ir"
|
||||
|
||||
@@ -17,4 +17,7 @@ dependencies {
|
||||
sourceSets {
|
||||
"main" { projectDefault() }
|
||||
"test" {}
|
||||
}
|
||||
}
|
||||
|
||||
val compileKotlin: org.jetbrains.kotlin.gradle.tasks.KotlinCompile by tasks
|
||||
compileKotlin.kotlinOptions.freeCompilerArgs += "-Xno-use-ir"
|
||||
|
||||
@@ -23,3 +23,6 @@ sourceSets {
|
||||
"main" { projectDefault() }
|
||||
"test" {}
|
||||
}
|
||||
|
||||
val compileKotlin: org.jetbrains.kotlin.gradle.tasks.KotlinCompile by tasks
|
||||
compileKotlin.kotlinOptions.freeCompilerArgs += "-Xno-use-ir"
|
||||
|
||||
@@ -15,3 +15,5 @@ sourceSets {
|
||||
"test" {}
|
||||
}
|
||||
|
||||
val compileKotlin: org.jetbrains.kotlin.gradle.tasks.KotlinCompile by tasks
|
||||
compileKotlin.kotlinOptions.freeCompilerArgs += "-Xno-use-ir"
|
||||
|
||||
@@ -22,4 +22,7 @@ dependencies {
|
||||
sourceSets {
|
||||
"main" { projectDefault() }
|
||||
"test" { none() }
|
||||
}
|
||||
}
|
||||
|
||||
val compileKotlin: org.jetbrains.kotlin.gradle.tasks.KotlinCompile by tasks
|
||||
compileKotlin.kotlinOptions.freeCompilerArgs += "-Xno-use-ir"
|
||||
|
||||
@@ -194,6 +194,7 @@ compileCoroutinesExperimentalKotlin {
|
||||
"-Xuse-experimental=kotlin.Experimental",
|
||||
"-Xcoroutines=enable",
|
||||
"-XXLanguage:-ReleaseCoroutines",
|
||||
"-Xno-use-ir",
|
||||
"-module-name", "kotlin-stdlib-coroutines"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -23,4 +23,7 @@ testsJar()
|
||||
projectTest {
|
||||
workingDir = rootDir
|
||||
dependsOn(":dist")
|
||||
}
|
||||
}
|
||||
|
||||
val compileKotlin: org.jetbrains.kotlin.gradle.tasks.KotlinCompile by tasks
|
||||
compileKotlin.kotlinOptions.freeCompilerArgs += "-Xno-use-ir"
|
||||
|
||||
Reference in New Issue
Block a user