Browse Source

Temporally disable Kotlin native compiler verification for Chat example (#2423)

* Temporally disable Kotlin native compiler verification for Chat example

+ add Maven local repository to test the sample on dev versions

* settings.gradle.kts add mavenLocal

Co-authored-by: dima.avdeev <dima.avdeev@jetbrains.com>
pull/2425/head
Nikita Lipsky 2 years ago committed by GitHub
parent
commit
cf232b37a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      experimental/examples/chat-mpp/build.gradle.kts
  2. 1
      experimental/examples/chat-mpp/settings.gradle.kts

14
experimental/examples/chat-mpp/build.gradle.kts

@ -14,6 +14,7 @@ plugins {
version = "1.0-SNAPSHOT" version = "1.0-SNAPSHOT"
repositories { repositories {
mavenLocal()
google() google()
mavenCentral() mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
@ -46,6 +47,13 @@ kotlin {
} }
} }
} }
// Workaround for an issue:
// https://youtrack.jetbrains.com/issue/KT-53561/Invalid-LLVM-module-inlinable-function-call-in-a-function-with-debug-info-must-have-a-dbg-location
// Compose comiler produces nodes without line information sometimes that provokes Kotlin native compiler to report errors.
// TODO: remove workaround when switch to Kotlin 1.8
val disableKonanVerification = "-Xverify-compiler=false"
iosX64("uikitX64") { iosX64("uikitX64") {
binaries { binaries {
executable() { executable() {
@ -53,7 +61,8 @@ kotlin {
freeCompilerArgs += listOf( freeCompilerArgs += listOf(
"-linker-option", "-framework", "-linker-option", "Metal", "-linker-option", "-framework", "-linker-option", "Metal",
"-linker-option", "-framework", "-linker-option", "CoreText", "-linker-option", "-framework", "-linker-option", "CoreText",
"-linker-option", "-framework", "-linker-option", "CoreGraphics" "-linker-option", "-framework", "-linker-option", "CoreGraphics",
disableKonanVerification
) )
} }
} }
@ -65,7 +74,8 @@ kotlin {
freeCompilerArgs += listOf( freeCompilerArgs += listOf(
"-linker-option", "-framework", "-linker-option", "Metal", "-linker-option", "-framework", "-linker-option", "Metal",
"-linker-option", "-framework", "-linker-option", "CoreText", "-linker-option", "-framework", "-linker-option", "CoreText",
"-linker-option", "-framework", "-linker-option", "CoreGraphics" "-linker-option", "-framework", "-linker-option", "CoreGraphics",
disableKonanVerification
) )
} }
} }

1
experimental/examples/chat-mpp/settings.gradle.kts

@ -1,5 +1,6 @@
pluginManagement { pluginManagement {
repositories { repositories {
mavenLocal()
gradlePluginPortal() gradlePluginPortal()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
google() google()

Loading…
Cancel
Save