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 6, 2024
1 parent 2593e0e commit 6aee792
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions build/Linux/000-install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,21 @@ 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
mkdir $HOME/swift
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
export PATH=$HOME/swift-5.10-RELEASE-ubuntu20.04/usr/bin:"${PATH}"
echo "PATH=\$HOME/swift-5.10-RELEASE-ubuntu20.04/usr/bin:\"\${PATH}\"" >> .build_env

ls -la
pushd swift-5.10-RELEASE-ubuntu20.04
ls -la
pushd usr
ls -la
popd
popd

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 6aee792

Please sign in to comment.