We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d906cdb commit 60466e8Copy full SHA for 60466e8
gradle-plugin/src/main/kotlin/com/google/devtools/ksp/gradle/KspAATask.kt
@@ -307,8 +307,11 @@ abstract class KspAATask @Inject constructor(
307
val konanTargetName = kotlinCompilation.target.konanTarget.name
308
cfg.konanTargetName.value(konanTargetName)
309
cfg.konanHome.value((kotlinCompileProvider.get() as KotlinNativeCompile).konanHome)
310
+
311
+ val isKlibCrossCompilationEnabled =
312
+ project.findProperty("kotlin.native.enableKlibsCrossCompilation") == "true"
313
kspAATask.onlyIf {
- HostManager().enabled.any {
314
+ isKlibCrossCompilationEnabled || HostManager().enabled.any {
315
it.name == konanTargetName
316
}
317
0 commit comments