backend/build: rebuild stdlib and start if Kotlin sources changed
This commit is contained in:
committed by
SvyatoslavScherbina
parent
d1892a35ba
commit
3a9ba76d91
@@ -198,7 +198,10 @@ task stdlib(type: JavaExec) {
|
|||||||
'-properties', project(':backend.native').file('konan.properties'),
|
'-properties', project(':backend.native').file('konan.properties'),
|
||||||
project(':runtime').file('src/main/kotlin'),
|
project(':runtime').file('src/main/kotlin'),
|
||||||
*project.globalArgs)
|
*project.globalArgs)
|
||||||
|
|
||||||
|
inputs.dir(project(':runtime').file('src/main/kotlin'))
|
||||||
outputs.file(project(':runtime').file('build/stdlib.kt.bc'))
|
outputs.file(project(':runtime').file('build/stdlib.kt.bc'))
|
||||||
|
|
||||||
dependsOn ':runtime:build'
|
dependsOn ':runtime:build'
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -215,7 +218,10 @@ task start(type: JavaExec) {
|
|||||||
'-properties', project(':backend.native').file('konan.properties'),
|
'-properties', project(':backend.native').file('konan.properties'),
|
||||||
project(':runtime').file('src/launcher/kotlin'),
|
project(':runtime').file('src/launcher/kotlin'),
|
||||||
*project.globalArgs)
|
*project.globalArgs)
|
||||||
|
|
||||||
|
inputs.dir(project(':runtime').file('src/launcher/kotlin'))
|
||||||
outputs.file(project(':runtime').file('build/start.kt.bc'))
|
outputs.file(project(':runtime').file('build/start.kt.bc'))
|
||||||
|
|
||||||
dependsOn ':runtime:build', 'stdlib'
|
dependsOn ':runtime:build', 'stdlib'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user