Remove the copy of testLibrary.klib in build/ so that we don't link two copies

This commit is contained in:
Alexander Gorshenev
2019-06-27 05:47:54 +03:00
committed by alexander-gorshenev
parent 127ba155c7
commit 9e652a61ce
+6
View File
@@ -127,6 +127,12 @@ task installTestLibrary(type: KlibInstall) {
dependsOn compileKonanTestLibraryHost
klib = konanArtifacts.testLibrary.getArtifactByTarget('host')
repo = rootProject.file(testLibraryDir)
doLast {
// Remove the version in build/, so that we don't link two copies.
def file = project.file("build/konan/libs/${project.target.name}/testLibrary.klib")
file.delete()
}
}
// Gets tests from the same Kotlin compiler build