Cross Compilation - Blog Post

Hello everyone!

I just published a blog post on my experience doing cross-compilation in Swift for a few small projects I recently built!

I wrote about installing the open-source toolchain, ensuring you're using it and not Xcode's, installing a Linux SDK, and alternatively using Docker to cross-compile from macOS to Linux. I recently did a few projects that I wanted to host on my Gentoo home server, so cross-compilation was necessary to get it to run!

Huge thanks to the community here where there's lots of posts asking questions and receiving help, I've learned a lot from these forums!

8 Likes

Very cool! Thanks for sharing!

1 Like

In case you are unaware, Gentoo GURU has a Swift 6 toolchain, so you should be able to natively build on your server too, if you want.