[K/N] Enable dynamic driver for klib output by default

This commit is contained in:
Sergey Bogolepov
2022-10-14 17:22:57 +03:00
committed by Space Team
parent 39656209f0
commit b1f2f733fe
2 changed files with 3 additions and 4 deletions
@@ -62,7 +62,7 @@ class KonanDriver(val project: Project, val environment: KotlinCoreEnvironment,
}
}
// Dynamic driver is WIP, so it might not support all possible configurations.
return if (DynamicCompilerDriver.supportsConfig()) {
return if (DynamicCompilerDriver.supportsConfig(config)) {
DynamicCompilerDriver()
} else {
StaticCompilerDriver()
@@ -18,9 +18,8 @@ import org.jetbrains.kotlin.konan.util.usingNativeMemoryAllocator
internal class DynamicCompilerDriver : CompilerDriver() {
companion object {
// Will become non-trivial in the future.
fun supportsConfig(): Boolean =
false
fun supportsConfig(config: KonanConfig): Boolean =
config.produce == CompilerOutputKind.LIBRARY
}
override fun run(config: KonanConfig, environment: KotlinCoreEnvironment) {