build: trivially support runtime sources written in Kotlin

This commit is contained in:
Svyatoslav Scherbina
2016-10-18 14:49:40 +03:00
parent 7350b4da37
commit 5bb5cb70ee
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -76,7 +76,11 @@ build.dependsOn 'compilerClasses','cli_bcClasses','bc_frontendClasses'
task run(type: JavaExec) {
main 'org.jetbrains.kotlin.cli.bc.K2NativeKt'
classpath sourceSets.cli_bc.runtimeClasspath
args 'tests/codegen/function/sum.kt'
args project(':runtime').file('src/main/kotlin')
args '-output', "$buildDir/out.bc"
jvmArgs '-ea'
+1 -1
View File
@@ -41,5 +41,5 @@ clean:
%.BCkt:%.kt
${JAVA} -cp ${KOTLIN_NATIVE_CLASSPATH} -Djava.library.path=${BACKEND}/build/nativelibs org.jetbrains.kotlin.cli.bc.K2NativeKt -output $@ -runtime ${RUNTIME}/build/runtime.bc $<
${JAVA} -cp ${KOTLIN_NATIVE_CLASSPATH} -Djava.library.path=${BACKEND}/build/nativelibs org.jetbrains.kotlin.cli.bc.K2NativeKt -output $@ -runtime ${RUNTIME}/build/runtime.bc ${RUNTIME}/src/main/kotlin $<