[Gradle] Fix configuration cache issues for LinkFramework tasks
^KT-58261 Verification Pending
This commit is contained in:
committed by
Space Team
parent
96f8bcdf43
commit
2abe9ac1ef
+7
-1
@@ -108,7 +108,13 @@ class ConfigurationCacheIT : AbstractConfigurationCacheIT() {
|
||||
":lib:compileTestKotlinIosX64",
|
||||
":lib:linkDebugTestIosX64",
|
||||
":lib:transformCommonMainDependenciesMetadata",
|
||||
":lib:transformCommonMainCInteropDependenciesMetadata"
|
||||
":lib:transformCommonMainCInteropDependenciesMetadata",
|
||||
":lib:linkDebugFrameworkIosArm64",
|
||||
":lib:linkDebugFrameworkIosX64",
|
||||
":lib:linkDebugFrameworkIosFat",
|
||||
":lib:linkReleaseFrameworkIosArm64",
|
||||
":lib:linkReleaseFrameworkIosX64",
|
||||
":lib:linkReleaseFrameworkIosFat",
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
+10
-2
@@ -14,10 +14,18 @@ kotlin {
|
||||
}
|
||||
iosX64 {
|
||||
binaries {
|
||||
//framework(namePrefix = "framework")
|
||||
framework {
|
||||
baseName = "libFramework"
|
||||
}
|
||||
}
|
||||
}
|
||||
iosArm64 {
|
||||
binaries {
|
||||
framework {
|
||||
baseName = "libFramework"
|
||||
}
|
||||
}
|
||||
}
|
||||
iosArm64()
|
||||
iosSimulatorArm64()
|
||||
|
||||
targets.filterIsInstance<KotlinNativeTarget>().forEach {
|
||||
|
||||
+1
@@ -269,6 +269,7 @@ class Framework(
|
||||
compilation: KotlinNativeCompilation
|
||||
) : AbstractNativeLibrary(name, baseName, buildType, compilation), HasAttributes {
|
||||
|
||||
@Transient // Is required configuration cache support for KotlinNative tasks that capture whole binary object as task state
|
||||
private val attributeContainer = HierarchyAttributeContainer(parent = compilation.attributes)
|
||||
|
||||
override fun getAttributes() = attributeContainer
|
||||
|
||||
Reference in New Issue
Block a user