From 4672727bd67e8a18a08334bdc6817fb9cb7514a2 Mon Sep 17 00:00:00 2001 From: Svyatoslav Scherbina Date: Wed, 4 Oct 2023 18:21:55 +0200 Subject: [PATCH] Native: enable K2 for benchmarks in performance/ Those benchmarks are 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 benchmarks in performance/ This can be reverted once bootstrap is updated to 2.0.0. --- kotlin-native/performance/gradle.properties | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kotlin-native/performance/gradle.properties b/kotlin-native/performance/gradle.properties index ed1877a4ab1..20bdd0e6050 100644 --- a/kotlin-native/performance/gradle.properties +++ b/kotlin-native/performance/gradle.properties @@ -18,5 +18,9 @@ artifactoryRepo = kotlin-native-benchmarks externalReports = coroutinesReport.txt externalBenchmarksReport = externalReport.json +# This can be reverted once bootstrap is updated to 2.0.0: +kotlin.experimental.tryK2=true +# See commit message for more details. + # Avoid building platform libraries by the MPP plugin. kotlin.native.distribution.type=prebuilt \ No newline at end of file