Fix benchmarks after migrating to new MPP plugin syntax

This commit is contained in:
Elena Lepilkina
2019-05-17 17:36:44 +03:00
parent 6c7075cba4
commit 82d13239cb
3 changed files with 10 additions and 3 deletions
@@ -174,7 +174,7 @@ fun getJvmCompileTime(programName: String): BenchmarkResult =
@JvmOverloads
fun getNativeCompileTime(programName: String,
tasks: List<String> = listOf("compileKotlinNative", "linkMainReleaseExecutableNative")): BenchmarkResult =
tasks: List<String> = listOf("compileKotlinNative", "linkBenchmarkReleaseExecutableNative")): BenchmarkResult =
TaskTimerListener.getBenchmarkResult(programName, tasks)
fun getCompileBenchmarkTime(programName: String, tasksNames: Iterable<String>, repeats: Int, exitCodes: Map<String, Int>) =
+8 -1
View File
@@ -19,6 +19,13 @@ private def determinePreset() {
preset
}
def getMingwPath() {
def directory = System.getenv("MINGW64_DIR")
if (directory == null)
directory = "c:/msys64/mingw64"
return directory
}
def hostPreset = determinePreset()
kotlin {
@@ -62,7 +69,7 @@ kotlin {
binaries {
executable('benchmark', [RELEASE]) {
if (org.gradle.internal.os.OperatingSystem.current().isWindows()) {
linkerOpts("-L${getMingwPath()}/lib")
linkerOpts = ["-L${getMingwPath()}/lib".toString()]
}
}
}
+1 -1
View File
@@ -102,7 +102,7 @@ kotlin {
fromPreset(presets.mingwX64, 'windows') {
binaries.all {
linkerOpts = ["-L${getMingwPath()}/lib"]
linkerOpts = ["-L${getMingwPath()}/lib".toString()]
}
compilations.main.cinterops {
libcurl {