File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change 1
1
import dev.mokkery.MockMode
2
2
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
3
+ import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
4
+ import org.jetbrains.kotlin.gradle.tasks.KotlinCompileCommon
3
5
4
6
plugins {
5
7
alias(libs.plugins.kotlin.multiplatform)
@@ -16,8 +18,14 @@ kotlin {
16
18
// linuxArm64() // https://youtrack.jetbrains.com/issue/KT-36871/Support-Aarch64-Linux-as-a-host-for-the-Kotlin-Native
17
19
linuxX64(),
18
20
).forEach {
19
- it.binaries.all {
20
- freeCompilerArgs = freeCompilerArgs + listOf (" -Xallocator=std" , " -Xruntime-logs=gc=info" ,)
21
+ it.compilations.configureEach {
22
+ compileTaskProvider.configure {
23
+ compilerOptions {
24
+ freeCompilerArgs.addAll(listOf (" -Xallocator=std" , " -Xruntime-logs=gc=info" ))
25
+
26
+ // freeCompilerArgs = freeCompilerArgs + listOf("-Xallocator=std", "-Xruntime-logs=gc=info",)
27
+ }
28
+ }
21
29
}
22
30
}
23
31
@@ -46,3 +54,10 @@ kotlin {
46
54
mokkery {
47
55
defaultMockMode.set(MockMode .autoUnit)
48
56
}
57
+
58
+ /*
59
+ tasks.withType<KotlinCompileCommon>().configureEach {
60
+ compilerOptions {
61
+ freeCompilerArgs.addAll(listOf("-Xallocator=std", "-Xruntime-logs=gc=info",))
62
+ }
63
+ }*/
You can’t perform that action at this time.
0 commit comments