Skip to content

Conversation

@ianbotsf
Copy link
Contributor

@ianbotsf ianbotsf commented Jun 6, 2025

Issue #, if available:

aws/aws-sdk-kotlin#229

Description of changes:

This change adds support for Kotlin/Native Windows compilation by configuring the mingwX64 target when applicable.

This change also removes most support for cross-compilation as it presents too many challenges during development while still not providing a streamlined way to test the built binaries. Kotlin/Native targets will now build only on a host with a matching OS (although different architectures may still be cross-compiled on a single host).

Companion PR: aws/aws-crt-kotlin#152

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.


if (NATIVE_ENABLED) {
if (hasApple) {
if ((hasApple || hasDesktop) && HostManager.hostIsMac) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was the hasDesktop addition necessary here? IIRC we don't use the "desktop" source set anywhere. Was this just for correctness?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I was condensing the boolean logic from L124-130. If we have no plans to use desktop in the future I can remove this and related declarations.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can leave it in place for now and look at simplifying after development is complete

@ianbotsf ianbotsf merged commit 8843582 into kn-main Jun 17, 2025
1 check passed
@ianbotsf ianbotsf deleted the kn-win branch June 17, 2025 17:41
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

Successfully merging this pull request may close these issues.

2 participants