[Compiler CLI] Use reading language version settings from environment only if the resource is presented or flag is set

This commit is contained in:
Victor Petukhov
2022-02-15 16:27:21 +03:00
committed by teamcity
parent 683a3e74a0
commit 5c8ca0ca9b
5 changed files with 22 additions and 6 deletions
@@ -464,6 +464,10 @@ interface LanguageVersionSettings {
// Please do not use this to enable/disable specific features/checks. Instead add a new LanguageFeature entry and call supportsFeature
val languageVersion: LanguageVersion
companion object {
const val RESOURCE_NAME_TO_ALLOW_READING_FROM_ENVIRONMENT = "META-INF/allow-configuring-from-environment"
}
}
class LanguageVersionSettingsImpl @JvmOverloads constructor(