build: trivially support runtime sources written in Kotlin
This commit is contained in:
@@ -76,7 +76,11 @@ build.dependsOn 'compilerClasses','cli_bcClasses','bc_frontendClasses'
|
|||||||
task run(type: JavaExec) {
|
task run(type: JavaExec) {
|
||||||
main 'org.jetbrains.kotlin.cli.bc.K2NativeKt'
|
main 'org.jetbrains.kotlin.cli.bc.K2NativeKt'
|
||||||
classpath sourceSets.cli_bc.runtimeClasspath
|
classpath sourceSets.cli_bc.runtimeClasspath
|
||||||
|
|
||||||
args 'tests/codegen/function/sum.kt'
|
args 'tests/codegen/function/sum.kt'
|
||||||
|
|
||||||
|
args project(':runtime').file('src/main/kotlin')
|
||||||
|
|
||||||
args '-output', "$buildDir/out.bc"
|
args '-output', "$buildDir/out.bc"
|
||||||
|
|
||||||
jvmArgs '-ea'
|
jvmArgs '-ea'
|
||||||
|
|||||||
@@ -41,5 +41,5 @@ clean:
|
|||||||
|
|
||||||
|
|
||||||
%.BCkt:%.kt
|
%.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 $<
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user