From 096edd893736af547fa4932c0b6eef446176a10a Mon Sep 17 00:00:00 2001 From: Svyatoslav Scherbina Date: Mon, 2 Oct 2023 18:03:57 +0200 Subject: [PATCH] Native: enable K2 for benchmarksAnalyzer benchmarksAnalyzer is built with bootstrap KGP and snapshot compiler. Currently the former is K1, while the latter is K2. As a result, the build fails because K2 compiler needs -Xfragment-sources argument, while K1 uses -Xcommon-sources. So KGP passes the latter, while the compiler expects the former. Fix this by forcing KGP to use K2 for benchmarksAnalyzer. --- kotlin-native/tools/benchmarksAnalyzer/gradle.properties | 1 + 1 file changed, 1 insertion(+) diff --git a/kotlin-native/tools/benchmarksAnalyzer/gradle.properties b/kotlin-native/tools/benchmarksAnalyzer/gradle.properties index 82dc8ba6cfe..e61e719eb56 100644 --- a/kotlin-native/tools/benchmarksAnalyzer/gradle.properties +++ b/kotlin-native/tools/benchmarksAnalyzer/gradle.properties @@ -1,3 +1,4 @@ kotlin.native.home=../../dist org.gradle.jvmargs=-Xmx2048m +kotlin.experimental.tryK2=true kotlin.mpp.enableCInteropCommonization=true \ No newline at end of file