diff --git a/build.gradle b/build.gradle index abc4e0e8dd8..adb45f6a4ea 100644 --- a/build.gradle +++ b/build.gradle @@ -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()] } } diff --git a/performance/build.gradle b/performance/build.gradle index 6ce79c8268b..e88e0bd7444 100644 --- a/performance/build.gradle +++ b/performance/build.gradle @@ -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)