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") {
|
||||
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) {
|
||||
@@ -520,11 +523,21 @@ task distPlatformLibs {
|
||||
}
|
||||
|
||||
task dist {
|
||||
dependsOn 'distCompiler', 'distRuntime', 'distEndorsedLibraries', 'distDef'
|
||||
dependsOn "distCompiler",
|
||||
"distRuntime",
|
||||
"distEndorsedLibraries",
|
||||
"distDef",
|
||||
"distStdlibCache",
|
||||
"distEndorsedCache"
|
||||
}
|
||||
|
||||
task crossDist {
|
||||
dependsOn 'crossDistRuntime', 'distCompiler', 'crossDistEndorsedLibraries'
|
||||
dependsOn "distCompiler",
|
||||
"crossDistRuntime",
|
||||
"crossDistEndorsedLibraries",
|
||||
"distDef",
|
||||
"crossDistStdlibCache",
|
||||
"crossDistEndorsedCache"
|
||||
}
|
||||
|
||||
task bundle {
|
||||
|
||||
@@ -58,7 +58,7 @@ targetList.each { target ->
|
||||
compilerDistributionPath.set(distDir)
|
||||
|
||||
dependsOn "${target}EndorsedLibraries"
|
||||
dependsOn ":${target}CrossDist"
|
||||
dependsOn ":${target}CrossDistRuntime"
|
||||
dependsOn ":${target}StdlibCache"
|
||||
|
||||
cacheTask.dependsOn it
|
||||
|
||||
@@ -67,7 +67,7 @@ project.rootProject.ext.platformManager.enabled.each { target ->
|
||||
originalKlib = file("$konanHome/klib/common/stdlib")
|
||||
cacheRoot = file("$konanHome/klib/cache")
|
||||
|
||||
dependsOn ":${targetName}CrossDist"
|
||||
dependsOn ":${targetName}CrossDistRuntime"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user