[K/N] Fix perf build
This commit is contained in:
committed by
Space Team
parent
1e9979a6b7
commit
bdb534c3de
@@ -12,7 +12,8 @@ plugins {
|
||||
val toolsPath = "../../tools"
|
||||
val targetExtension = "Macos"
|
||||
|
||||
project.extra["platformManager"] = PlatformManager(projectDir.parentFile.parentFile.absolutePath, false)
|
||||
// TODO: add konanDataDir to the buildDistribution after KT-50463 will be in current bootstrap
|
||||
project.extra["platformManager"] = PlatformManager(buildDistribution(projectDir.parentFile.parentFile.absolutePath), false)
|
||||
swiftBenchmark {
|
||||
applicationName = "swiftInterop"
|
||||
commonSrcDirs = listOf("$toolsPath/benchmarks/shared/src/main/kotlin/report", "src", "../shared/src/main/kotlin")
|
||||
|
||||
@@ -20,6 +20,15 @@ class Distribution private constructor(private val serialized: Serialized) : jav
|
||||
konanDataDir: String? = null
|
||||
) : this(Serialized(konanHome, onlyDefaultProfiles, runtimeFileOverride, propertyOverrides, konanDataDir))
|
||||
|
||||
// TODO: Remove after KT-50463 will be in current bootstrap
|
||||
@Deprecated("Binary compatibility until bootstrap with KT-50463", level = DeprecationLevel.HIDDEN)
|
||||
constructor(
|
||||
konanHome: String,
|
||||
onlyDefaultProfiles: Boolean = false,
|
||||
runtimeFileOverride: String? = null,
|
||||
propertyOverrides: Map<String, String>? = null,
|
||||
) : this(Serialized(konanHome, onlyDefaultProfiles, runtimeFileOverride, propertyOverrides, null))
|
||||
|
||||
val konanHome by serialized::konanHome
|
||||
private val onlyDefaultProfiles by serialized::onlyDefaultProfiles
|
||||
private val runtimeFileOverride by serialized::runtimeFileOverride
|
||||
@@ -148,4 +157,4 @@ fun buildDistribution(konanHome: String, konanDataDir: String?) = Distribution(k
|
||||
|
||||
fun customerDistribution(konanHome: String) = Distribution(konanHome,false, null)
|
||||
|
||||
fun customerDistribution(konanHome: String, konanDataDir: String?) = Distribution(konanHome,false, null, konanDataDir = konanDataDir)
|
||||
fun customerDistribution(konanHome: String, konanDataDir: String?) = Distribution(konanHome,false, null, konanDataDir = konanDataDir)
|
||||
|
||||
Reference in New Issue
Block a user