Benchmarks: Explicitly specify Kotlin/JVM compiler
This commit is contained in:
committed by
Ilya Matveev
parent
ba4fde666c
commit
bd6f2ae01c
+4
-2
@@ -68,8 +68,6 @@ open class BenchmarkExtension @Inject constructor(val project: Project) {
|
|||||||
var linkerOpts: Collection<String> = emptyList()
|
var linkerOpts: Collection<String> = emptyList()
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Override kotlin compiler with a correct version.
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A plugin configuring a benchmark Kotlin/Native project.
|
* A plugin configuring a benchmark Kotlin/Native project.
|
||||||
*/
|
*/
|
||||||
@@ -218,6 +216,10 @@ open class BenchmarkingPlugin: Plugin<Project> {
|
|||||||
|
|
||||||
override fun apply(target: Project) = with(target) {
|
override fun apply(target: Project) = with(target) {
|
||||||
pluginManager.apply("kotlin-multiplatform")
|
pluginManager.apply("kotlin-multiplatform")
|
||||||
|
|
||||||
|
// Use Kotlin compiler version specified by the project property.
|
||||||
|
dependencies.add("kotlinCompilerClasspath", "org.jetbrains.kotlin:kotlin-compiler-embeddable:$kotlinVersion")
|
||||||
|
|
||||||
extensions.create(BENCHMARK_EXTENSION_NAME, BenchmarkExtension::class.java, this)
|
extensions.create(BENCHMARK_EXTENSION_NAME, BenchmarkExtension::class.java, this)
|
||||||
configureMPPExtension()
|
configureMPPExtension()
|
||||||
addTimeListener(this)
|
addTimeListener(this)
|
||||||
|
|||||||
Reference in New Issue
Block a user