Fix kotlin.native.home property resolution in tests
This commit is contained in:
committed by
Pavel Punegov
parent
9c3a1332d5
commit
c14ef35a47
@@ -25,7 +25,7 @@ buildscript {
|
||||
dependencies {
|
||||
classpath "org.jetbrains.kotlin:kotlin-native-gradle-plugin:$gradlePluginVersion"
|
||||
}
|
||||
ext.useCustomDist = project.hasProperty("org.jetbrains.kotlin.native.home")
|
||||
ext.useCustomDist = project.hasProperty("org.jetbrains.kotlin.native.home") || project.hasProperty("konan.home")
|
||||
if (!useCustomDist) {
|
||||
ext.setProperty("org.jetbrains.kotlin.native.home", distDir.absolutePath)
|
||||
}
|
||||
@@ -56,6 +56,10 @@ dependencies {
|
||||
}
|
||||
}
|
||||
|
||||
if (project.hasProperty("konan.home")) {
|
||||
ext.setProperty("org.jetbrains.kotlin.native.home", project.property("konan.home"))
|
||||
}
|
||||
|
||||
ext.testOutputRoot = rootProject.file("test.output").absolutePath
|
||||
ext.externalTestsDir = project.file("build/external")
|
||||
ext.externalStdlibTestsDir = project.file("build/stdlib_external")
|
||||
|
||||
Reference in New Issue
Block a user