g/c: line balance
This commit is contained in:
@@ -24,6 +24,7 @@ public class KonanTest extends DefaultTask {
|
|||||||
def sourceBc = new File("${sourceKt.absolutePath}.bc")
|
def sourceBc = new File("${sourceKt.absolutePath}.bc")
|
||||||
def runtimeBc = new File("${runtimeProject.buildDir.canonicalPath}/runtime.bc")
|
def runtimeBc = new File("${runtimeProject.buildDir.canonicalPath}/runtime.bc")
|
||||||
println "${runtimeBc}"
|
println "${runtimeBc}"
|
||||||
|
|
||||||
project.javaexec {
|
project.javaexec {
|
||||||
main='org.jetbrains.kotlin.cli.bc.K2NativeKt'
|
main='org.jetbrains.kotlin.cli.bc.K2NativeKt'
|
||||||
classpath = project.configurations.cli_bc
|
classpath = project.configurations.cli_bc
|
||||||
@@ -34,15 +35,18 @@ public class KonanTest extends DefaultTask {
|
|||||||
|
|
||||||
jvmArgs "-Djava.library.path=${backendNative.buildDir.canonicalPath}/nativelibs"
|
jvmArgs "-Djava.library.path=${backendNative.buildDir.canonicalPath}/nativelibs"
|
||||||
}
|
}
|
||||||
|
|
||||||
def runtimeS = bc2s(runtimeBc)
|
def runtimeS = bc2s(runtimeBc)
|
||||||
def sourceS = bc2s(sourceBc)
|
def sourceS = bc2s(sourceBc)
|
||||||
def testC = sourceS.absolutePath.replace(".kt.S", "-test.c")
|
def testC = sourceS.absolutePath.replace(".kt.S", "-test.c")
|
||||||
def mainC = "main.c"
|
def mainC = "main.c"
|
||||||
def exe = sourceS.absolutePath.replace(".kt.S", "")
|
def exe = sourceS.absolutePath.replace(".kt.S", "")
|
||||||
|
|
||||||
project.exec {
|
project.exec {
|
||||||
commandLine "${llvmC}", "${testC}", "${runtimeS.absolutePath}", "${sourceS.absolutePath}", "${mainC}",
|
commandLine "${llvmC}", "${testC}", "${runtimeS.absolutePath}", "${sourceS.absolutePath}", "${mainC}",
|
||||||
"-o", "${exe}"
|
"-o", "${exe}"
|
||||||
}
|
}
|
||||||
|
|
||||||
def res = project.exec {
|
def res = project.exec {
|
||||||
commandLine "${exe}"
|
commandLine "${exe}"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user