Change KaptFlag.USE_JVM_IR default value to true
According to the comment on `Kapt3GradleSubplugin.BooleanOption` and the
change in a7b1bade85.
#KT-53135
This commit is contained in:
committed by
Space Team
parent
574b9b76cd
commit
4b0d878873
@@ -126,7 +126,7 @@ enum class KaptFlag(val description: String, val defaultValue: Boolean = false)
|
||||
INCREMENTAL_APT("Incremental annotation processing (apt mode)"),
|
||||
STRIP_METADATA("Strip @Metadata annotations from stubs"),
|
||||
KEEP_KDOC_COMMENTS_IN_STUBS("Keep KDoc comments in stubs", defaultValue = true),
|
||||
USE_JVM_IR("Use JVM IR backend")
|
||||
USE_JVM_IR("Use JVM IR backend", defaultValue = true)
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
+3
-2
@@ -6,6 +6,7 @@
|
||||
package org.jetbrains.kotlin.kapt3.test.integration
|
||||
|
||||
import org.jetbrains.kotlin.backend.common.extensions.IrGenerationExtension
|
||||
import org.jetbrains.kotlin.base.kapt3.KaptFlag
|
||||
import org.jetbrains.kotlin.kapt3.test.JvmCompilerWithKaptFacade
|
||||
import org.jetbrains.kotlin.kapt3.test.KaptContextBinaryArtifact
|
||||
import org.jetbrains.kotlin.kapt3.test.KaptEnvironmentConfigurator
|
||||
@@ -45,8 +46,8 @@ class AbstractKotlinKapt3IntegrationTestRunner(
|
||||
|
||||
defaultDirectives {
|
||||
+KaptTestDirectives.MAP_DIAGNOSTIC_LOCATIONS
|
||||
if (targetBackend.isIR) {
|
||||
+KaptTestDirectives.USE_JVM_IR
|
||||
if (!targetBackend.isIR) {
|
||||
KaptTestDirectives.DISABLED_FLAGS with KaptFlag.USE_JVM_IR
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user