From 848d3761d1ad7df98d52e7a693f756519e9eb733 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Mon, 13 Mar 2017 10:34:45 +0300 Subject: [PATCH] Move skipMetadataVersionCheck flag to LanguageVersionSettings This makes it possible to avoid the CompilerConfiguration instance in injectors, because CompilerDeserializationConfiguration was the only left component that required it. LanguageVersionSettings is not a good name for this entity anymore, it should be renamed in the future Original commit: ac530ac49c60d2e62847806addc54fe8bded56c7 --- .../src/org/jetbrains/kotlin/config/KotlinFacetSettings.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jps/jps-common/src/org/jetbrains/kotlin/config/KotlinFacetSettings.kt b/jps/jps-common/src/org/jetbrains/kotlin/config/KotlinFacetSettings.kt index 392af29446b..19f449cb599 100644 --- a/jps/jps-common/src/org/jetbrains/kotlin/config/KotlinFacetSettings.kt +++ b/jps/jps-common/src/org/jetbrains/kotlin/config/KotlinFacetSettings.kt @@ -123,6 +123,12 @@ class KotlinFacetSettings { coroutinesError = value == CoroutineSupport.DISABLED } } + + var skipMetadataVersionCheck: Boolean + get() = compilerArguments?.skipMetadataVersionCheck == true + set(value) { + compilerArguments!!.skipMetadataVersionCheck = value + } } fun TargetPlatformKind<*>.createCompilerArguments(): CommonCompilerArguments {