Native: fix kotlin-native/performance/framework build script for K2
The build script manually specifies which directories are parts of which source sets. And it did that wrong: all directories were just added to the nativeMain source set. This was an incorrect configuration (matching expect and actual were getting into the same source set), and K2 compiler was not really happy with that. This commit fixes the correspondence between source sets and source directories in kotlin-native/performance/framework build script, thus fixes the build for that benchmark with K2.
This commit is contained in:
committed by
Space Team
parent
4672727bd6
commit
e22d9821e2
@@ -20,10 +20,13 @@ def archSuffix = PlatformInfo.hostName.substring(PlatformInfo.hostName.lastIndex
|
||||
|
||||
kotlin {
|
||||
sourceSets {
|
||||
nativeMain {
|
||||
commonMain {
|
||||
kotlin.srcDir "$toolsPath/benchmarks/shared/src"
|
||||
kotlin.srcDir "$toolsPath/benchmarksAnalyzer/src/main/kotlin"
|
||||
kotlin.srcDir "$rootProject.projectDir/../endorsedLibraries/kotlinx.cli/src/main/kotlin"
|
||||
}
|
||||
nativeMain {
|
||||
dependsOn commonMain
|
||||
kotlin.srcDir "$rootProject.projectDir/../endorsedLibraries/kotlinx.cli/src/main/kotlin-native"
|
||||
kotlin.srcDir "$toolsPath/benchmarksAnalyzer/src/main/kotlin-native"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user