[K/N][build] Fix cache location
This commit is contained in:
@@ -473,7 +473,7 @@ targetList.each { target ->
|
|||||||
dependsOn "${target}CrossDistStdlib"
|
dependsOn "${target}CrossDistStdlib"
|
||||||
dependsOn ":kotlin-native:platformLibs:${target}StdlibCache"
|
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") {
|
from("${project(":kotlin-native:runtime").buildDir}/cache/$target") {
|
||||||
include('**')
|
include('**')
|
||||||
|
|||||||
@@ -78,7 +78,8 @@ targetList.each { target ->
|
|||||||
originalKlib = library.project.file("build/${target}${library.taskName}")
|
originalKlib = library.project.file("build/${target}${library.taskName}")
|
||||||
cacheRoot = library.project.file("build/cache/$target").path
|
cacheRoot = library.project.file("build/cache/$target").path
|
||||||
compilerDistributionPath.set(distDir)
|
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 "$library.projectName:${target}${library.taskName}"
|
||||||
dependsOn ":kotlin-native:${target}CrossDistRuntime"
|
dependsOn ":kotlin-native:${target}CrossDistRuntime"
|
||||||
|
|||||||
+1
-2
@@ -31,8 +31,7 @@ open class KonanCacheTask: DefaultTask() {
|
|||||||
val cacheDirectory: File
|
val cacheDirectory: File
|
||||||
get() = File(cacheRoot).apply {
|
get() = File(cacheRoot).apply {
|
||||||
if (!exists()) mkdir()
|
if (!exists()) mkdir()
|
||||||
resolve("$target-g$cacheKind")
|
}.resolve("$target-g$cacheKind")
|
||||||
}
|
|
||||||
|
|
||||||
@get:OutputDirectory
|
@get:OutputDirectory
|
||||||
protected val cacheFile: File
|
protected val cacheFile: File
|
||||||
|
|||||||
Reference in New Issue
Block a user