build: Build stdlib cache as a part of dist/cross_dist
This commit is contained in:
committed by
Ilya Matveev
parent
934b843ffa
commit
be8622053e
+16
-3
@@ -500,7 +500,10 @@ targetList.each { target ->
|
|||||||
}
|
}
|
||||||
|
|
||||||
task("${target}CrossDist") {
|
task("${target}CrossDist") {
|
||||||
dependsOn "${target}CrossDistRuntime", 'distCompiler', 'commonDistRuntime', "${target}CrossDistEndorsedLibraries"
|
dependsOn "${target}CrossDistRuntime", "distCompiler", "commonDistRuntime", "${target}CrossDistEndorsedLibraries"
|
||||||
|
if (target in cacheableTargetNames) {
|
||||||
|
dependsOn "${target}StdlibCache", "${target}EndorsedCache"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task("${target}CrossDistEndorsedLibraries", type: Copy) {
|
task("${target}CrossDistEndorsedLibraries", type: Copy) {
|
||||||
@@ -520,11 +523,21 @@ task distPlatformLibs {
|
|||||||
}
|
}
|
||||||
|
|
||||||
task dist {
|
task dist {
|
||||||
dependsOn 'distCompiler', 'distRuntime', 'distEndorsedLibraries', 'distDef'
|
dependsOn "distCompiler",
|
||||||
|
"distRuntime",
|
||||||
|
"distEndorsedLibraries",
|
||||||
|
"distDef",
|
||||||
|
"distStdlibCache",
|
||||||
|
"distEndorsedCache"
|
||||||
}
|
}
|
||||||
|
|
||||||
task crossDist {
|
task crossDist {
|
||||||
dependsOn 'crossDistRuntime', 'distCompiler', 'crossDistEndorsedLibraries'
|
dependsOn "distCompiler",
|
||||||
|
"crossDistRuntime",
|
||||||
|
"crossDistEndorsedLibraries",
|
||||||
|
"distDef",
|
||||||
|
"crossDistStdlibCache",
|
||||||
|
"crossDistEndorsedCache"
|
||||||
}
|
}
|
||||||
|
|
||||||
task bundle {
|
task bundle {
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ targetList.each { target ->
|
|||||||
compilerDistributionPath.set(distDir)
|
compilerDistributionPath.set(distDir)
|
||||||
|
|
||||||
dependsOn "${target}EndorsedLibraries"
|
dependsOn "${target}EndorsedLibraries"
|
||||||
dependsOn ":${target}CrossDist"
|
dependsOn ":${target}CrossDistRuntime"
|
||||||
dependsOn ":${target}StdlibCache"
|
dependsOn ":${target}StdlibCache"
|
||||||
|
|
||||||
cacheTask.dependsOn it
|
cacheTask.dependsOn it
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ project.rootProject.ext.platformManager.enabled.each { target ->
|
|||||||
originalKlib = file("$konanHome/klib/common/stdlib")
|
originalKlib = file("$konanHome/klib/common/stdlib")
|
||||||
cacheRoot = file("$konanHome/klib/cache")
|
cacheRoot = file("$konanHome/klib/cache")
|
||||||
|
|
||||||
dependsOn ":${targetName}CrossDist"
|
dependsOn ":${targetName}CrossDistRuntime"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user