Make native tasks CC compatible

This allows running with CC&native:
./gradlew assemble
./gradlew :kotlin-native:bundle
./gradlew :native:native.tests:test

Required for KTI-1553
This commit is contained in:
cristiangarcia
2024-02-27 23:36:33 +01:00
committed by Space Team
parent 584d98cd72
commit 57edc413a3
10 changed files with 49 additions and 32 deletions
@@ -91,6 +91,7 @@ konanTargetList.forEach { target ->
if (target in cacheableTargets) {
val cacheTask = tasks.register("${libName}Cache", KonanCacheTask::class.java) {
notCompatibleWithConfigurationCache("project used in execution time")
this.target = targetName
originalKlib.fileProvider(libTask.map {
it.artifactDirectory ?: error("Artifact wasn't set for ${it.name}")