backend/build: rebuild stdlib and start if Kotlin sources changed

This commit is contained in:
Svyatoslav Scherbina
2016-12-30 13:59:30 +07:00
committed by SvyatoslavScherbina
parent d1892a35ba
commit 3a9ba76d91
+6
View File
@@ -198,7 +198,10 @@ task stdlib(type: JavaExec) {
'-properties', project(':backend.native').file('konan.properties'),
project(':runtime').file('src/main/kotlin'),
*project.globalArgs)
inputs.dir(project(':runtime').file('src/main/kotlin'))
outputs.file(project(':runtime').file('build/stdlib.kt.bc'))
dependsOn ':runtime:build'
}
@@ -215,7 +218,10 @@ task start(type: JavaExec) {
'-properties', project(':backend.native').file('konan.properties'),
project(':runtime').file('src/launcher/kotlin'),
*project.globalArgs)
inputs.dir(project(':runtime').file('src/launcher/kotlin'))
outputs.file(project(':runtime').file('build/start.kt.bc'))
dependsOn ':runtime:build', 'stdlib'
}