diff --git a/build/Linux/000-install-dependencies.sh b/build/Linux/000-install-dependencies.sh index 153b738..742f668 100755 --- a/build/Linux/000-install-dependencies.sh +++ b/build/Linux/000-install-dependencies.sh @@ -53,3 +53,12 @@ update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-13 100 update-alternatives --set clang /usr/bin/clang-13 update-alternatives --set clang++ /usr/bin/clang++-13 clang --version + +# Install swift for bootstraping +wget https://download.swift.org/swift-5.10-release/ubuntu2004/swift-5.10-RELEASE/swift-5.10-RELEASE-ubuntu20.04.tar.gz +tar -xvzf swift-5.10-RELEASE-ubuntu20.04.tar.gz -C $HOME +export PATH=$HOME/swift-5.10-RELEASE-ubuntu20.04/usr/bin:$PATH +echo "export PATH=\$HOME/swift-5.10-RELEASE-ubuntu20.04/usr/bin:\$PATH" >> .build_env + +swift --version + \ No newline at end of file diff --git a/build/Linux/031-build-swift-arm64.sh b/build/Linux/031-build-swift-arm64.sh index a16e4bc..9719d48 100755 --- a/build/Linux/031-build-swift-arm64.sh +++ b/build/Linux/031-build-swift-arm64.sh @@ -3,6 +3,8 @@ set -ex source $HOME/.build_env +swift --version + $SWIFT_SRC/swift/utils/build-script --preset buildbot_linux_crosscompile_android,tools=RA,stdlib=RD,build,aarch64 \ ndk_path=$ANDROID_NDK \ install_destdir=$DST_ROOT/swift-nightly-install \