Remove obsolete compiler flag -Xuse-ir
This commit is contained in:
committed by
Space Team
parent
2951e0b955
commit
60016d3e5b
-8
@@ -6,19 +6,11 @@
|
||||
package org.jetbrains.kotlin.jps.build
|
||||
|
||||
import org.jetbrains.kotlin.cli.common.arguments.CommonCompilerArguments
|
||||
import org.jetbrains.kotlin.cli.common.arguments.K2JVMCompilerArguments
|
||||
import org.jetbrains.kotlin.incremental.testingUtils.BuildLogFinder
|
||||
import org.jetbrains.kotlin.jps.model.k2JvmCompilerArguments
|
||||
|
||||
abstract class AbstractIncrementalK2FirICLightTreeJvmJpsTest(
|
||||
allowNoFilesWithSuffixInTestData: Boolean = false
|
||||
) : AbstractIncrementalJpsTest(allowNoFilesWithSuffixInTestData = allowNoFilesWithSuffixInTestData) {
|
||||
override fun overrideModuleSettings() {
|
||||
myProject.k2JvmCompilerArguments = K2JVMCompilerArguments().also {
|
||||
it.useIR = true
|
||||
}
|
||||
}
|
||||
|
||||
override fun updateCommandLineArguments(arguments: CommonCompilerArguments) {
|
||||
additionalCommandLineArguments = additionalCommandLineArguments + listOf("-Xuse-k2", "-Xuse-fir-ic", "-Xuse-fir-lt")
|
||||
super.updateCommandLineArguments(arguments)
|
||||
|
||||
-8
@@ -6,19 +6,11 @@
|
||||
package org.jetbrains.kotlin.jps.build
|
||||
|
||||
import org.jetbrains.kotlin.cli.common.arguments.CommonCompilerArguments
|
||||
import org.jetbrains.kotlin.cli.common.arguments.K2JVMCompilerArguments
|
||||
import org.jetbrains.kotlin.incremental.testingUtils.BuildLogFinder
|
||||
import org.jetbrains.kotlin.jps.model.k2JvmCompilerArguments
|
||||
|
||||
abstract class AbstractIncrementalK2JvmJpsTest(
|
||||
allowNoFilesWithSuffixInTestData: Boolean = false
|
||||
) : AbstractIncrementalJpsTest(allowNoFilesWithSuffixInTestData = allowNoFilesWithSuffixInTestData) {
|
||||
override fun overrideModuleSettings() {
|
||||
myProject.k2JvmCompilerArguments = K2JVMCompilerArguments().also {
|
||||
it.useIR = true
|
||||
}
|
||||
}
|
||||
|
||||
override fun updateCommandLineArguments(arguments: CommonCompilerArguments) {
|
||||
additionalCommandLineArguments = additionalCommandLineArguments + listOf("-Xuse-k2", "-Xuse-fir-lt=false")
|
||||
super.updateCommandLineArguments(arguments)
|
||||
|
||||
-8
@@ -6,19 +6,11 @@
|
||||
package org.jetbrains.kotlin.jps.build
|
||||
|
||||
import org.jetbrains.kotlin.cli.common.arguments.CommonCompilerArguments
|
||||
import org.jetbrains.kotlin.cli.common.arguments.K2JVMCompilerArguments
|
||||
import org.jetbrains.kotlin.incremental.testingUtils.BuildLogFinder
|
||||
import org.jetbrains.kotlin.jps.model.k2JvmCompilerArguments
|
||||
|
||||
abstract class AbstractIncrementalK2LightTreeJvmJpsTest(
|
||||
allowNoFilesWithSuffixInTestData: Boolean = false
|
||||
) : AbstractIncrementalJpsTest(allowNoFilesWithSuffixInTestData = allowNoFilesWithSuffixInTestData) {
|
||||
override fun overrideModuleSettings() {
|
||||
myProject.k2JvmCompilerArguments = K2JVMCompilerArguments().also {
|
||||
it.useIR = true
|
||||
}
|
||||
}
|
||||
|
||||
override fun updateCommandLineArguments(arguments: CommonCompilerArguments) {
|
||||
additionalCommandLineArguments = additionalCommandLineArguments + listOf("-Xuse-k2", "-Xuse-fir-lt")
|
||||
super.updateCommandLineArguments(arguments)
|
||||
|
||||
Reference in New Issue
Block a user