[build][performance] fix Windows run
This commit is contained in:
committed by
Vasily Levchenko
parent
d324585d5c
commit
165f0ae93c
+3
-2
@@ -318,8 +318,9 @@ task performance(type: GradleBuild) {
|
||||
tasks = ['build', 'bench']
|
||||
|
||||
doFirst {
|
||||
startParameter.projectProperties['konanPluginClasspath'] =
|
||||
project(':tools:kotlin-native-gradle-plugin').tasks.getByName('jar').archivePath.canonicalPath
|
||||
startParameter.projectProperties = [
|
||||
'konanPluginClasspath' : project(':tools:kotlin-native-gradle-plugin').tasks.getByName('jar').archivePath.canonicalPath,
|
||||
'exe_suffix': TargetManager.host.getProgramSuffix()]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ private void dumpReport(String name, ByteArrayOutputStream output) {
|
||||
|
||||
task konanRun(type: Exec) {
|
||||
def output = new ByteArrayOutputStream()
|
||||
commandLine project.file("build/konan/bin/Ring.kexe").absolutePath, "$ringWarmup", "$iterations"
|
||||
commandLine project.file("build/konan/bin/Ring.${gradle.startParameter.projectProperties.exe_suffix}").absolutePath, "$ringWarmup", "$iterations"
|
||||
standardOutput = output
|
||||
doLast {
|
||||
dumpReport('konanReport', output)
|
||||
|
||||
Reference in New Issue
Block a user