diff --git a/build-tools/src/main/kotlin/org/jetbrains/kotlin/benchmark/BenchmarkingPlugin.kt b/build-tools/src/main/kotlin/org/jetbrains/kotlin/benchmark/BenchmarkingPlugin.kt index 2a18d59d75a..37e06088fa3 100644 --- a/build-tools/src/main/kotlin/org/jetbrains/kotlin/benchmark/BenchmarkingPlugin.kt +++ b/build-tools/src/main/kotlin/org/jetbrains/kotlin/benchmark/BenchmarkingPlugin.kt @@ -173,7 +173,7 @@ open class BenchmarkingPlugin: Plugin { private fun Project.configureNativeTarget(hostPreset: KotlinNativeTargetPreset) { kotlin.targetFromPreset(hostPreset, NATIVE_TARGET_NAME) { - compilations.getByName("main").kotlinOptions.freeCompilerArgs = project.compilerArgs + compilations.getByName("main").kotlinOptions.freeCompilerArgs = project.compilerArgs + listOf("-l", "kotlinx-cli") binaries.executable(NATIVE_EXECUTABLE_NAME, listOf(RELEASE)) { if (HostManager.hostIsMingw) { linkerOpts.add("-L${mingwPath}/lib")