[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']
|
tasks = ['build', 'bench']
|
||||||
|
|
||||||
doFirst {
|
doFirst {
|
||||||
startParameter.projectProperties['konanPluginClasspath'] =
|
startParameter.projectProperties = [
|
||||||
project(':tools:kotlin-native-gradle-plugin').tasks.getByName('jar').archivePath.canonicalPath
|
'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) {
|
task konanRun(type: Exec) {
|
||||||
def output = new ByteArrayOutputStream()
|
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
|
standardOutput = output
|
||||||
doLast {
|
doLast {
|
||||||
dumpReport('konanReport', output)
|
dumpReport('konanReport', output)
|
||||||
|
|||||||
Reference in New Issue
Block a user