From 41cb2ce3d83a614b330c7bbf14d174b3572e433f Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Fri, 12 May 2023 14:01:30 +0000 Subject: [PATCH] K/N: enable -Xlambdas=class for :kotlin-native:Interop:Indexer `staticCFunction` is used a few times in this module, and it uses kotlin-reflect to inspect the lambda parameter, which is only possible for class-generated lambdas. This is needed to enable indy lambdas in the project. --- kotlin-native/Interop/Indexer/build.gradle.kts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kotlin-native/Interop/Indexer/build.gradle.kts b/kotlin-native/Interop/Indexer/build.gradle.kts index 90e6732f0a3..90e9db52bda 100644 --- a/kotlin-native/Interop/Indexer/build.gradle.kts +++ b/kotlin-native/Interop/Indexer/build.gradle.kts @@ -169,6 +169,8 @@ tasks.withType().configureEach "-Xskip-prerelease-check", "-opt-in=kotlinx.cinterop.BetaInteropApi", "-opt-in=kotlinx.cinterop.ExperimentalForeignApi", + // staticCFunction uses kotlin.reflect.jvm.reflect on its lambda parameter. + "-Xlambdas=class", ) }