[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.
|
// 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()
|
||||||
|
|||||||
+2
-3
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user