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.
This commit is contained in:
Ilya Matveev
2020-01-15 19:02:22 +07:00
parent 8158d34bda
commit 55e97fee09
@@ -216,7 +216,7 @@ internal class KonanInteropRunner(project: Project, additionalJvmArgs: List<Stri
internal class KonanCompilerRunner(
project: Project,
additionalJvmArgs: List<String> = emptyList(),
val useArgFile: Boolean = true
val useArgFile: Boolean = project.disableKonanDaemon
) : KonanCliRunner("konanc", "Kotlin/Native compiler", project, additionalJvmArgs) {
override fun transformArgs(args: List<String>): List<String> {
if (!useArgFile) {