[K/N][perf] Fix running benchmarks with custom native build type
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user