Browse Source

add a reproducer for unbound symbols with partial-linkage disabled

fails with K1 and kotlin >= 1.9.0

./gradlew :testcase-inheritance-composableInterface-main:cleanLinuxX64Test :testcase-inheritance-composableInterface-main:linuxX64Test
repr_unbound_symbols_knative
oleksandr.karpovich 1 year ago
parent
commit
1327268c11
  1. 6
      compose/integrations/composable-test-cases/build.gradle.kts
  2. 7
      compose/integrations/composable-test-cases/buildSrc/build.gradle.kts
  3. 6
      compose/integrations/composable-test-cases/gradle.properties

6
compose/integrations/composable-test-cases/build.gradle.kts

@ -1,3 +1,4 @@
import org.jetbrains.kotlin.gradle.dsl.KotlinCompile
import org.jetbrains.kotlin.gradle.dsl.KotlinJsCompile import org.jetbrains.kotlin.gradle.dsl.KotlinJsCompile
group "com.example" group "com.example"
@ -28,6 +29,11 @@ allprojects {
"-Xklib-enable-signature-clash-checks=false", "-Xklib-enable-signature-clash-checks=false",
) )
} }
// disable partial-linkage to test that k/native and k/js don't produce unused unbound symbols
tasks.withType<KotlinCompile<*>>().configureEach {
kotlinOptions.freeCompilerArgs += "-Xpartial-linkage=disable"
}
} }
disableYarnLockMismatchReport() disableYarnLockMismatchReport()
} }

7
compose/integrations/composable-test-cases/buildSrc/build.gradle.kts

@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
repositories { repositories {
mavenCentral() mavenCentral()
gradlePluginPortal() gradlePluginPortal()
@ -7,6 +9,11 @@ plugins {
kotlin("jvm") kotlin("jvm")
} }
kotlin {
compilerOptions {
languageVersion.set(KotlinVersion.KOTLIN_1_9)
}
}
java { java {
sourceCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = JavaVersion.VERSION_1_8

6
compose/integrations/composable-test-cases/gradle.properties

@ -2,13 +2,13 @@ org.gradle.jvmargs=-Xmx2048M -XX:MaxMetaspaceSize=512m
kotlin.code.style=official kotlin.code.style=official
kotlin.native.enableDependencyPropagation=false kotlin.native.enableDependencyPropagation=false
android.useAndroidX=true android.useAndroidX=true
kotlin.version=1.8.20 kotlin.version=1.9.0
agp.version=7.3.0 agp.version=7.3.0
compose.version=1.5.0-dev1063 compose.version=1.5.0-dev1128
kotlin.native.cacheKind=none kotlin.native.cacheKind=none
#empty by default - a default version will be used #empty by default - a default version will be used
compose.kotlinCompilerPluginVersion=1.4.2 compose.kotlinCompilerPluginVersion=1.5.0
# default|failingJs - see enum class CasesToRun # default|failingJs - see enum class CasesToRun
tests.casesToRun=default tests.casesToRun=default

Loading…
Cancel
Save