Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 1.03 KB

README.md

File metadata and controls

24 lines (21 loc) · 1.03 KB

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/ld-linux-armhf.so.3, 
                         for GNU/Linux 3.2.0, not stripped