From 55e97fee09f783f35ea4d5362091bf0d67c5208a Mon Sep 17 00:00:00 2001 From: Ilya Matveev Date: Wed, 15 Jan 2020 19:02:22 +0700 Subject: [PATCH] Gradle, native: Don't use an arg file when compiler daemon is enabled We pass compiler flags using an arg file if the compiler is executed in a separate process because Windows limits maximal command line length (see https://github.com/JetBrains/kotlin-native/issues/1999). But for the compiler daemon we pass the args directly to the compiler entry point method. So we can abandon using an arg file here. --- .../jetbrains/kotlin/compilerRunner/KotlinNativeToolRunner.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/compilerRunner/KotlinNativeToolRunner.kt b/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/compilerRunner/KotlinNativeToolRunner.kt index 87ffc0b9245..2fe508ca524 100644 --- a/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/compilerRunner/KotlinNativeToolRunner.kt +++ b/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/compilerRunner/KotlinNativeToolRunner.kt @@ -216,7 +216,7 @@ internal class KonanInteropRunner(project: Project, additionalJvmArgs: List = emptyList(), - val useArgFile: Boolean = true + val useArgFile: Boolean = project.disableKonanDaemon ) : KonanCliRunner("konanc", "Kotlin/Native compiler", project, additionalJvmArgs) { override fun transformArgs(args: List): List { if (!useArgFile) {