Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KSP tasks are not run for extended cross-compile targets with kotlin.native.enableKlibsCrossCompilation=true #2267

Open
ephemient opened this issue Dec 26, 2024 · 1 comment

Comments

@ephemient
Copy link

With https://kotlinlang.org/docs/whatsnew21.html#ability-to-publish-kotlin-libraries-from-any-host the Apple targets can be built on Linux hosts.

However, the KSP tasks are not aware of this, and are still skipped.

@ephemient
Copy link
Author

For now I'm using

afterEvalutate {
    tasks.withType<KspAATask>().configureEach { setOnlyIf(Specs.satisfyAll()) }
    tasks.withType<KspTaskNative>().configureEach { setOnlyIf(Specs.satisfyAll()) }
}

as a workaround in my project, but the KSP plugin should handle this in a way consistent with the KMP plugin.

ephemient added a commit to ephemient/ksp that referenced this issue Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant