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"