aleksey.tomin
08/25/2020, 12:31 PMmimalloc
memory manager - https://kotlinlang.org/docs/reference/whatsnew14.html
How have I pass -Xallocator=mimalloc
by gradle (kts) configuration?
In kotlin-native source code I’ve found the 4 different ways and nothing works.Artyom Degtyarev [JB]
08/25/2020, 12:39 PMfreeCompilerArgs
option?aleksey.tomin
08/25/2020, 12:41 PMimport org.jetbrains.kotlin.gradle.tasks.KotlinCompile
...
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions.freeCompilerArgs += "-Xallocator=mimalloc"
…
$ ./gradlew build
...
* What went wrong:
Task with name 'compileKotlin' not found in root project 'kotlin-native'.
Artyom Degtyarev [JB]
08/25/2020, 12:42 PMaleksey.tomin
08/25/2020, 12:57 PM