Skip to content

Commit df0fdc3

Browse files
committed
Try to set compiler options globally
1 parent b1ba932 commit df0fdc3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

build.gradle.kts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
2-
31
plugins {
42
// this is necessary to avoid the plugins to be loaded multiple times
53
// in each subproject's classloader
@@ -13,9 +11,10 @@ allprojects {
1311
version = "0.0.2"
1412
}
1513

14+
/*
1615
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
1716
compilerOptions {
1817
freeCompilerArgs.add("-Xallocator=std")
1918
freeCompilerArgs.add("-Xruntime-logs=gc=info")
2019
}
21-
}
20+
}*/

lambda-runtime/build.gradle.kts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import dev.mokkery.MockMode
2+
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
23

34
plugins {
45
alias(libs.plugins.kotlin.multiplatform)
@@ -14,10 +15,10 @@ kotlin {
1415
//linuxArm64() // https://youtrack.jetbrains.com/issue/KT-36871/Support-Aarch64-Linux-as-a-host-for-the-Kotlin-Native
1516
linuxX64()
1617

17-
/* @OptIn(ExperimentalKotlinGradlePluginApi::class)
18+
@OptIn(ExperimentalKotlinGradlePluginApi::class)
1819
compilerOptions {
1920
freeCompilerArgs.add("-Xallocator=std")
20-
}*/
21+
}
2122

2223
sourceSets {
2324
commonMain.dependencies {

0 commit comments

Comments
 (0)