Native build: don't read klib files in KonanCacheTask.cacheFile

It is `@OutputDirectory`, so Gradle can invoke it early, even before the
klib itself is built.

Instead of reading `uniqName` from klib files, require specifying it
explicitly.
This commit is contained in:
Svyatoslav Scherbina
2022-03-05 14:06:08 +03:00
committed by Space
parent dea149ab47
commit 7470aaf06c
4 changed files with 28 additions and 11 deletions
@@ -126,6 +126,7 @@ targetList.forEach { targetName ->
tasks.register("${targetName}${library.taskName}Cache", KonanCacheTask::class.java) {
target = targetName
originalKlib = project.buildDir.resolve("$targetName${library.name}")
klibUniqName = library.name
cacheRoot = project.buildDir.resolve("cache/$targetName").absolutePath
cachedLibraries = mapOf(distDir.resolve("klib/common/stdlib") to