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:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user