From 5bb5cb70ee1889dce044b1b7cee271333fcd9880 Mon Sep 17 00:00:00 2001 From: Svyatoslav Scherbina Date: Tue, 18 Oct 2016 14:49:40 +0300 Subject: [PATCH] build: trivially support runtime sources written in Kotlin --- backend.native/build.gradle | 4 ++++ backend.native/tests/Makefile | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/backend.native/build.gradle b/backend.native/build.gradle index aa1625fe52d..5faa5acc5ca 100644 --- a/backend.native/build.gradle +++ b/backend.native/build.gradle @@ -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' diff --git a/backend.native/tests/Makefile b/backend.native/tests/Makefile index f8cf91bfcdb..556b47f474f 100644 --- a/backend.native/tests/Makefile +++ b/backend.native/tests/Makefile @@ -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 $<