Add crossDist dependency for crosstarget testing

This commit is contained in:
Pavel Punegov
2018-04-16 16:42:55 +03:00
committed by Pavel Punegov
parent 88cb6ff376
commit 2ff9a52eeb
@@ -77,6 +77,11 @@ abstract class KonanTest extends JavaExec {
// We don't build the compiler if a custom dist path is specified.
if (!project.ext.useCustomDist) {
dependsOn(project.rootProject.tasks['dist'])
if (project.testTarget) {
// if a test_target property is set then tests should depend on a crossDist
// otherwise runtime components would not be build for a target
dependsOn(project.rootProject.tasks['crossDist'])
}
}
}