[K/N][perf] Fix running benchmarks with custom native build type

This commit is contained in:
Elena Lepilkina
2021-09-27 21:36:06 +03:00
committed by Space
parent 65b6e7076b
commit cb7fab612c
7 changed files with 5 additions and 18 deletions
@@ -11,7 +11,7 @@ plugins {
val toolsPath = "../../tools"
val targetExtension = "Macos"
val defaultBuildType = NativeBuildType.RELEASE
project.extra["platformManager"] = PlatformManager(projectDir.parentFile.parentFile.absolutePath, false)
swiftBenchmark {
applicationName = "swiftInterop"
@@ -19,6 +19,5 @@ swiftBenchmark {
nativeSrcDirs = listOf("../shared/src/main/kotlin-native/common", "../shared/src/main/kotlin-native/posix")
swiftSources = listOf("$projectDir/swiftSrc/benchmarks.swift", "$projectDir/swiftSrc/main.swift")
compileTasks = listOf("compileKotlinNative", "linkBenchmarkReleaseFrameworkNative")
buildType = (findProperty("nativeBuildType") as String?)?.let { NativeBuildType.valueOf(it) } ?: defaultBuildType
cleanBeforeRunTask = "compileKotlinNative"
}