Skip to content

Commit aadaac3

Browse files
authored
Turned off optimization when compiling tests for K/N (#4157)
Optimization was turned on due to performance problems. However, with the new K/N memory manager, these performance problems seem to be fixed. On the other hand, compiling in optimized mode significantly increases the compiler's memory consumption, so it's better to turn it off.
1 parent 148992a commit aadaac3

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

kotlinx-coroutines-core/build.gradle.kts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,8 @@ kotlin {
9595
* All new MM targets are build with optimize = true to have stress tests properly run.
9696
*/
9797
targets.withType(KotlinNativeTargetWithTests::class).configureEach {
98-
binaries.getTest(DEBUG).apply {
99-
optimized = true
100-
}
101-
10298
binaries.test("workerTest", listOf(DEBUG)) {
10399
val thisTest = this
104-
optimized = true
105100
freeCompilerArgs = freeCompilerArgs + listOf("-e", "kotlinx.coroutines.mainBackground")
106101
testRuns.create("workerTest") {
107102
this as KotlinTaskTestRun<*, *>

kotlinx-coroutines-test/build.gradle.kts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@ import org.jetbrains.kotlin.gradle.plugin.mpp.*
22
import org.jetbrains.kotlin.gradle.targets.js.dsl.*
33

44
kotlin {
5-
targets.withType(KotlinNativeTargetWithTests::class.java).configureEach {
6-
binaries.getTest("DEBUG").apply {
7-
optimized = true
8-
}
9-
}
10-
115
sourceSets {
126
jvmTest {
137
dependencies {

0 commit comments

Comments
 (0)