From ae3fbfcc6707e979c7c2a8a0836e27c5d27b9374 Mon Sep 17 00:00:00 2001 From: Vasily Levchenko Date: Thu, 27 Oct 2016 20:55:48 +0300 Subject: [PATCH] g/c: line balance --- backend.native/tests/build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend.native/tests/build.gradle b/backend.native/tests/build.gradle index b4f5ac45857..6b7a23fcc62 100644 --- a/backend.native/tests/build.gradle +++ b/backend.native/tests/build.gradle @@ -24,6 +24,7 @@ public class KonanTest extends DefaultTask { def sourceBc = new File("${sourceKt.absolutePath}.bc") def runtimeBc = new File("${runtimeProject.buildDir.canonicalPath}/runtime.bc") println "${runtimeBc}" + project.javaexec { main='org.jetbrains.kotlin.cli.bc.K2NativeKt' classpath = project.configurations.cli_bc @@ -34,15 +35,18 @@ public class KonanTest extends DefaultTask { jvmArgs "-Djava.library.path=${backendNative.buildDir.canonicalPath}/nativelibs" } + def runtimeS = bc2s(runtimeBc) def sourceS = bc2s(sourceBc) def testC = sourceS.absolutePath.replace(".kt.S", "-test.c") def mainC = "main.c" def exe = sourceS.absolutePath.replace(".kt.S", "") + project.exec { commandLine "${llvmC}", "${testC}", "${runtimeS.absolutePath}", "${sourceS.absolutePath}", "${mainC}", "-o", "${exe}" } + def res = project.exec { commandLine "${exe}" }