Fix benchmarks after migrating to new MPP plugin syntax
This commit is contained in:
@@ -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>) =
|
||||
|
||||
@@ -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()]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@ kotlin {
|
||||
|
||||
fromPreset(presets.mingwX64, 'windows') {
|
||||
binaries.all {
|
||||
linkerOpts = ["-L${getMingwPath()}/lib"]
|
||||
linkerOpts = ["-L${getMingwPath()}/lib".toString()]
|
||||
}
|
||||
compilations.main.cinterops {
|
||||
libcurl {
|
||||
|
||||
Reference in New Issue
Block a user