[K/N] Add -Xforce-compiler-driver=(static, dynamic) flag

Useful for development purposes when one wants to compare
the outputs of different drivers.
This commit is contained in:
Sergey Bogolepov
2022-10-05 12:34:25 +03:00
committed by Space Team
parent 6ef4277d89
commit d7fff3ca01
4 changed files with 14 additions and 2 deletions
@@ -393,6 +393,9 @@ class K2NativeCompilerArguments : CommonCompilerArguments() {
@Argument(value = "-Xomit-framework-binary", description = "Omit binary when compiling framework")
var omitFrameworkBinary: Boolean = false
@Argument(value = "-Xforce-compiler-driver", description = "Force compiler to use specific compiler driver: static or dynamic")
var forceCompilerDriver: String? = null
override fun configureAnalysisFlags(collector: MessageCollector, languageVersion: LanguageVersion): MutableMap<AnalysisFlag<*>, Any> =
super.configureAnalysisFlags(collector, languageVersion).also {
val optInList = it[AnalysisFlags.optIn] as List<*>