[K/N] Enable dynamic driver for klib output by default
This commit is contained in:
committed by
Space Team
parent
39656209f0
commit
b1f2f733fe
+1
-1
@@ -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()
|
||||
|
||||
+2
-3
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user