File tree Expand file tree Collapse file tree
build-logic/src/main/kotlin/ktorbuild Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,9 +8,11 @@ import ktorbuild.targets.KtorTargets
88import org.gradle.kotlin.dsl.assign
99import org.gradle.kotlin.dsl.getValue
1010import org.gradle.kotlin.dsl.provideDelegate
11+ import org.gradle.kotlin.dsl.withType
1112import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
1213import org.jetbrains.kotlin.gradle.plugin.mpp.DefaultCInteropSettings
1314import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
15+ import org.jetbrains.kotlin.gradle.tasks.KotlinNativeCompile
1416
1517/* *
1618 * Creates a CInterop configuration for all Native targets using the given [sourceSet]
@@ -62,4 +64,9 @@ fun KotlinMultiplatformExtension.createCInterop(
6264 configure(targetName)
6365 }
6466 }
67+
68+ // Disable configuration cache for compile[target]MainKotlinMetadata tasks
69+ project.tasks.withType<KotlinNativeCompile >()
70+ .named { it.endsWith(" MainKotlinMetadata" ) }
71+ .configureEach { notCompatibleWithConfigurationCache(" Workaround for KT-76147" ) }
6572}
You can’t perform that action at this time.
0 commit comments