Build infra: Fix rebuilding caches after library changes
This commit is contained in:
committed by
Ilya Matveev
parent
a9201210f6
commit
323ac4bf5b
+6
@@ -49,6 +49,12 @@ open class KonanCacheTask: DefaultTask() {
|
|||||||
|
|
||||||
@TaskAction
|
@TaskAction
|
||||||
fun compile() {
|
fun compile() {
|
||||||
|
// Compiler doesn't create a cache if the cacheFile already exists. So we need to remove it manually.
|
||||||
|
if (cacheFile.exists()) {
|
||||||
|
val deleted = cacheFile.deleteRecursively()
|
||||||
|
check(deleted) { "Cannot delete stale cache: ${cacheFile.absolutePath}" }
|
||||||
|
}
|
||||||
|
|
||||||
val args = listOf(
|
val args = listOf(
|
||||||
"-g",
|
"-g",
|
||||||
"-target", target,
|
"-target", target,
|
||||||
|
|||||||
Reference in New Issue
Block a user