Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time

macOS -> RasPi Cross Compilation Toolchain

Swift3 tuxOS ARM

NOTE: This subproject moved to its own repository: AlwaysRightInstitute/swift-mac2arm-x-compile-toolchain

What this is good for? You can build Raspberry Pi Swift binaries on a Mac. Like this:

mkdir helloworld && cd helloworld
swift package init --type=executable
swift build --destination /tmp/cross-toolchain/rpi-ubuntu-xenial-destination.json
file .build/debug/helloworld
.build/debug/helloworld: ELF 32-bit LSB executable, ARM, 
                         EABI5 version 1 (SYSV), dynamically linked, 
                         interpreter /lib/, 
                         for GNU/Linux 3.2.0, not stripped