[K/N][build] Fix cache location

This commit is contained in:
Pavel Punegov
2021-10-12 17:10:58 +03:00
committed by Space
parent 634812f96f
commit bc89921fdd
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -473,7 +473,7 @@ targetList.each { target ->
dependsOn "${target}CrossDistStdlib"
dependsOn ":kotlin-native:platformLibs:${target}StdlibCache"
destinationDir project.file("$distDir/klib/cache")
destinationDir project.file("$distDir/klib/cache/")
from("${project(":kotlin-native:runtime").buildDir}/cache/$target") {
include('**')
+2 -1
View File
@@ -78,7 +78,8 @@ targetList.each { target ->
originalKlib = library.project.file("build/${target}${library.taskName}")
cacheRoot = library.project.file("build/cache/$target").path
compilerDistributionPath.set(distDir)
cachedLibrary = "${dist}/klib/common/stdlib,${dist}/klib/cache/stdlib-cache"
// TODO: should depend on stdlib producer task and its properties
cachedLibrary = "${dist}/klib/common/stdlib,${dist}/klib/cache/${target}-gSTATIC/stdlib-cache"
dependsOn "$library.projectName:${target}${library.taskName}"
dependsOn ":kotlin-native:${target}CrossDistRuntime"
@@ -31,8 +31,7 @@ open class KonanCacheTask: DefaultTask() {
val cacheDirectory: File
get() = File(cacheRoot).apply {
if (!exists()) mkdir()
resolve("$target-g$cacheKind")
}
}.resolve("$target-g$cacheKind")
@get:OutputDirectory
protected val cacheFile: File