[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. // Dynamic driver is WIP, so it might not support all possible configurations.
return if (DynamicCompilerDriver.supportsConfig()) { return if (DynamicCompilerDriver.supportsConfig(config)) {
DynamicCompilerDriver() DynamicCompilerDriver()
} else { } else {
StaticCompilerDriver() StaticCompilerDriver()
@@ -18,9 +18,8 @@ import org.jetbrains.kotlin.konan.util.usingNativeMemoryAllocator
internal class DynamicCompilerDriver : CompilerDriver() { internal class DynamicCompilerDriver : CompilerDriver() {
companion object { companion object {
// Will become non-trivial in the future. fun supportsConfig(config: KonanConfig): Boolean =
fun supportsConfig(): Boolean = config.produce == CompilerOutputKind.LIBRARY
false
} }
override fun run(config: KonanConfig, environment: KotlinCoreEnvironment) { override fun run(config: KonanConfig, environment: KotlinCoreEnvironment) {