Remove obsolete check for language version and IR backends

This commit is contained in:
Alexander Udalov
2021-08-06 19:28:30 +02:00
parent a6336ec134
commit 0213c25c9b
4 changed files with 1 additions and 50 deletions
@@ -358,17 +358,6 @@ class K2NativeCompilerArguments : CommonCompilerArguments() {
if (printIr)
phasesToDumpAfter = arrayOf("ALL")
}
override fun checkIrSupport(languageVersionSettings: LanguageVersionSettings, collector: MessageCollector) {
if (languageVersionSettings.languageVersion < LanguageVersion.KOTLIN_1_4
|| languageVersionSettings.apiVersion < ApiVersion.KOTLIN_1_4
) {
collector.report(
severity = CompilerMessageSeverity.ERROR,
message = "Native backend cannot be used with language or API version below 1.4"
)
}
}
}
const val EMBED_BITCODE_FLAG = "-Xembed-bitcode"