From 9e652a61ceab2b9f89da7394505305bb300ba37e Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Thu, 27 Jun 2019 05:47:54 +0300 Subject: [PATCH] Remove the copy of testLibrary.klib in build/ so that we don't link two copies --- backend.native/tests/build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend.native/tests/build.gradle b/backend.native/tests/build.gradle index 24b1d6c4215..75ba4da3060 100644 --- a/backend.native/tests/build.gradle +++ b/backend.native/tests/build.gradle @@ -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