From 2949a4ed7cb97e255138f966ede18a9335d242d3 Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Fri, 20 Oct 2017 16:10:29 +0300 Subject: [PATCH] Adepted test library build.gradle for windows. --- klib/build.gradle | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/klib/build.gradle b/klib/build.gradle index 0901bf1985f..6d176a1875f 100644 --- a/klib/build.gradle +++ b/klib/build.gradle @@ -26,6 +26,7 @@ dependencies { } def dist = rootProject.file('dist').absolutePath +def suffix = isWindows() ? ".bat" : "" // TODO: Ideally we want to write just konanArtifacts{} clause here, // but we need to make Kotlin/Native Gradle Plugin a dependence @@ -33,7 +34,7 @@ def dist = rootProject.file('dist').absolutePath task compileKonanTestLibrary(type: Exec) { dependsOn ':dist' - def compiler = "$dist/bin/konanc" + def compiler = "$dist/bin/konanc$suffix" def source = 'src/testLibrary' def artifact = 'build/konan/bin/testLibrary' @@ -44,8 +45,8 @@ task compileKonanTestLibrary(type: Exec) { task installTestLibrary(type: Exec) { dependsOn 'compileKonanTestLibrary' + def tool = "$dist/bin/klib$suffix" def repo = "$dist/klib/common" - def tool = "$dist/bin/klib" def library = 'build/konan/bin/testLibrary.klib' executable tool