Add crossDist dependency for crosstarget testing
This commit is contained in:
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.
|
// We don't build the compiler if a custom dist path is specified.
|
||||||
if (!project.ext.useCustomDist) {
|
if (!project.ext.useCustomDist) {
|
||||||
dependsOn(project.rootProject.tasks['dist'])
|
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'])
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user