Skip to content

Commit

Permalink
Dev: install Swift for bootstrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
andriydruk committed Jun 7, 2024
1 parent 2593e0e commit c0b803c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build/Linux/000-install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

2 changes: 2 additions & 0 deletions build/Linux/031-build-swift-arm64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit c0b803c

Please sign in to comment.