Fix gradle configuration cache in KotlinNativeLinkArtifactTask.
This commit is contained in:
committed by
Space Team
parent
c83286ef7e
commit
dffdc26208
+4
-2
@@ -89,8 +89,10 @@ abstract class KotlinNativeLinkArtifactTask @Inject constructor(
|
||||
@get:Input
|
||||
abstract val binaryOptions: MapProperty<String, String>
|
||||
|
||||
private val nativeBinaryOptions = PropertiesProvider(project).nativeBinaryOptions
|
||||
|
||||
@get:Input
|
||||
internal val allBinaryOptions get() = PropertiesProvider(project).nativeBinaryOptions + binaryOptions.get()
|
||||
internal val allBinaryOptions: Provider<Map<String, String>> = binaryOptions.map { it + nativeBinaryOptions }
|
||||
|
||||
override val toolOptions: CompilerCommonToolOptions = objectFactory
|
||||
.newInstance<CompilerCommonToolOptionsDefault>()
|
||||
@@ -205,7 +207,7 @@ abstract class KotlinNativeLinkArtifactTask @Inject constructor(
|
||||
entryPoint = entryPoint.getOrNull(),
|
||||
embedBitcode = embedBitcode.get(),
|
||||
linkerOpts = linkerOptions.get(),
|
||||
binaryOptions = allBinaryOptions,
|
||||
binaryOptions = allBinaryOptions.get(),
|
||||
isStaticFramework = staticFramework.get(),
|
||||
exportLibraries = exportLibraries.klibs(),
|
||||
includeLibraries = includeLibraries.klibs(),
|
||||
|
||||
Reference in New Issue
Block a user