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.
This commit is contained in:
Svyatoslav Scherbina
2023-10-02 18:03:57 +02:00
committed by Space Team
parent 68b55181fe
commit 096edd8937
@@ -1,3 +1,4 @@
kotlin.native.home=../../dist
org.gradle.jvmargs=-Xmx2048m
kotlin.experimental.tryK2=true
kotlin.mpp.enableCInteropCommonization=true