KT-53154 extract implementation of enumEntries into an expect/actual internal helper function
It's required, so it can be implemented in different backends at a different pace and in a different manner
This commit is contained in:
committed by
Space Team
parent
40a6c81d97
commit
61175889b9
@@ -39,7 +39,8 @@ val copySources by task<Sync> {
|
||||
"kotlin/text/TypeAliases.kt")
|
||||
from(stdlibProjectDir.resolve("src"))
|
||||
.include("kotlin/collections/TypeAliases.kt",
|
||||
"kotlin/enums/EnumEntriesSerializationProxy.kt")
|
||||
"kotlin/enums/EnumEntriesSerializationProxy.kt",
|
||||
"kotlin/enums/EnumEntriesJVM.kt")
|
||||
from(stdlibProjectDir.resolve("../src"))
|
||||
.include("kotlin/util/Standard.kt",
|
||||
"kotlin/internal/Annotations.kt",
|
||||
@@ -52,8 +53,13 @@ val copySources by task<Sync> {
|
||||
into(File(buildDir, "src"))
|
||||
}
|
||||
|
||||
tasks.withType<KotlinCompile> {
|
||||
|
||||
|
||||
tasks.compileKotlin {
|
||||
dependsOn(copySources)
|
||||
val commonSources = listOf(
|
||||
"kotlin/enums/EnumEntries.kt"
|
||||
).map { copySources.get().destinationDir.resolve(it) }
|
||||
kotlinOptions {
|
||||
freeCompilerArgs += listOf(
|
||||
"-Xallow-kotlin-package",
|
||||
@@ -63,6 +69,11 @@ tasks.withType<KotlinCompile> {
|
||||
)
|
||||
moduleName = "kotlin-stdlib"
|
||||
}
|
||||
doFirst {
|
||||
kotlinOptions.freeCompilerArgs += listOf(
|
||||
"-Xcommon-sources=${commonSources.joinToString(File.pathSeparator)}",
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
val jar = runtimeJar {
|
||||
|
||||
Reference in New Issue
Block a user