Skip to content

Conversation

AYastrebov
Copy link
Contributor

Since Kotlin 2.2.20 we’ve been planning to enable Klibs cross compilation by default. For atomicfu we now need to explicitly disable cross compilation kotlin.native.enableKlibsCrossCompilation=false

@fzhinkin
Copy link
Collaborator

@AYastrebov could you please elaborate why that's necessary? Are there any negative consequences of cross-compiling AFU's native libs?

@fzhinkin fzhinkin requested review from fzhinkin and removed request for mvicsokolova June 16, 2025 14:30
@AYastrebov
Copy link
Contributor Author

@AYastrebov could you please elaborate why that's necessary? Are there any negative consequences of cross-compiling AFU's native libs?

Cross compilation with cinterops is only possible on supported host systems. If we find cinterops during the configuration phase, then the ERROR diagnostic will be fired and build will be cancelled.

@AYastrebov
Copy link
Contributor Author

@fzhinkin can we merge it? It blocks my MR into kotlin repo

@fzhinkin fzhinkin merged commit ff4d5ee into develop Jun 17, 2025
2 checks passed
fzhinkin added a commit that referenced this pull request Jun 25, 2025
fzhinkin added a commit that referenced this pull request Jun 25, 2025
fzhinkin added a commit that referenced this pull request Jun 25, 2025
fzhinkin added a commit that referenced this pull request Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants