Fix cross-compilation dependency for tests that depend on platform libs
This commit is contained in:
committed by
Pavel Punegov
parent
0d62143c20
commit
b47052e993
@@ -238,6 +238,10 @@ def createTestTasks(File testRoot, Class<Task> taskType, Closure taskConfigurati
|
|||||||
void dependsOnPlatformLibs(Task t) {
|
void dependsOnPlatformLibs(Task t) {
|
||||||
if (!useCustomDist) {
|
if (!useCustomDist) {
|
||||||
t.dependsOn(':distPlatformLibs')
|
t.dependsOn(':distPlatformLibs')
|
||||||
|
def testTarget = project.testTarget
|
||||||
|
if (testTarget != null && testTarget != project.hostName) {
|
||||||
|
t.dependsOn(":${testTarget}PlatformLibs")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user