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

Support klib cross compilation #2243

Open
eygraber opened this issue Nov 27, 2024 · 2 comments
Open

Support klib cross compilation #2243

eygraber opened this issue Nov 27, 2024 · 2 comments

Comments

@eygraber
Copy link

Kotlin 2.1.0 introduced klib cross compilation that allows building a klib for any target on any host.

KSP2 recently started disabling tasks if they aren't on their native host. Can that change be rolled back to allow for klib cross compilation to work with KSP?

eygraber added a commit to eygraber/virtue that referenced this issue Nov 27, 2024
@eygraber
Copy link
Author

Workaround is:

tasks.all {
  if(name.startsWith("kspKotlinIos")) {
    afterEvaluate {
      setOnlyIf { true }
    }
  }
}

eygraber added a commit to eygraber/virtue that referenced this issue Nov 27, 2024
* Update kotlin monorepo to v2.0.21

* Remove workaround for HiddenFromObjC

* Remove workaround for KT-70901

* Update dependency com.google.devtools.ksp to v2.0.21-1.0.26 (#107)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update Kotlin to 2.1.0

* Update the package lock for PRs when needed

* Enable incremental wasm compilation

* Use kotlinx browser artifact

* Fix missed detekt violations

* Update VICE

* Enable KLIB cross compilation

* Workaround for KSP not supporting klib cross compilation

  - // google/ksp#2243

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Eliezer Graber <[email protected]>
@Ppeepost4489
Copy link

#2243

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

2 participants