From 7e439432cda961764cb8e29a70684e2fe35970a4 Mon Sep 17 00:00:00 2001 From: Elena Lepilkina Date: Tue, 15 Sep 2020 09:17:32 +0300 Subject: [PATCH] Fix configurations on Mac and Windows --- .../src/main/kotlin/org/jetbrains/kotlin/RunKotlinNativeTask.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-tools/src/main/kotlin/org/jetbrains/kotlin/RunKotlinNativeTask.kt b/build-tools/src/main/kotlin/org/jetbrains/kotlin/RunKotlinNativeTask.kt index 66277ae64ff..433bb64830e 100644 --- a/build-tools/src/main/kotlin/org/jetbrains/kotlin/RunKotlinNativeTask.kt +++ b/build-tools/src/main/kotlin/org/jetbrains/kotlin/RunKotlinNativeTask.kt @@ -56,7 +56,7 @@ open class RunKotlinNativeTask @Inject constructor(private val linkTask: Task, private fun execBenchmarkOnce(benchmark: String, warmupCount: Int, repeatCount: Int) : String { val output = ByteArrayOutputStream() - val useCset = project.property("useCset").toString().toBoolean() + val useCset = project.findProperty("useCset")?.toString()?.toBoolean() ?: false project.exec { if (useCset) { it.executable = "cset"