Swift runtime for Linux Armv7
Set the required environment variables for the scripts:
export SWIFT_NATIVE_PATH="/usr/bin"
./build.sh
export SWIFT_NATIVE_PATH="/usr/bin"
export SWIFT_PACKAGE_SRCDIR=/home/user/Developer/MySwiftPackage
./build.sh # Or skip if using cached build
./build-swift-package.sh
./generate-xcode-toolchain.sh
export SWIFT_PACKAGE_SRCDIR=/home/user/Developer/MySwiftPackage
export SWIFT_NATIVE_PATH=/tmp/cross-toolchain/debian-bookworm.sdk
./build-swift-package.sh
SWIFT_PACKAGE_SRCDIR
can be set to the root of your own packages to cross compile them using build-swift-package.sh
.