Add new jvm compilation key ignoreConstOptimizationErrors

This key suppose to be a workaround in keys if something goes
wrong in ir interpreter.
This commit is contained in:
Ivan Kylchik
2022-08-18 15:44:31 +03:00
committed by Space
parent 44af612775
commit 3027ea9551
6 changed files with 23 additions and 3 deletions
@@ -518,6 +518,12 @@ Also sets `-jvm-target` value equal to the selected JDK version"""
)
var enableDebugMode: Boolean by FreezableVar(false)
@Argument(
value = "-Xignore-const-optimization-errors",
description = "Ignore all compilation exceptions while optimizing some constant expressions."
)
var ignoreConstOptimizationErrors: Boolean by FreezableVar(false)
override fun configureAnalysisFlags(collector: MessageCollector, languageVersion: LanguageVersion): MutableMap<AnalysisFlag<*>, Any> {
val result = super.configureAnalysisFlags(collector, languageVersion)
result[JvmAnalysisFlags.strictMetadataVersionSemantics] = strictMetadataVersionSemantics