2017-05-13 12:43:52 +08:00
|
|
|
set -euo pipefail
|
|
|
|
|
2017-05-14 05:55:03 +08:00
|
|
|
# install dependencies
|
|
|
|
# some packages below will be update, swift assumes newer versions
|
|
|
|
# of, for example, sqlite3 and libicu, without the update some
|
|
|
|
# tools will not work
|
2017-05-13 12:43:52 +08:00
|
|
|
sudo apt-get update
|
2017-10-12 17:44:25 +08:00
|
|
|
sudo apt-get install clang-3.6 libxml2
|
|
|
|
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.6 100
|
2017-05-13 12:43:52 +08:00
|
|
|
|
2017-05-14 08:00:27 +08:00
|
|
|
# This would fix a know linker issue mentioned in:
|
|
|
|
# https://bugs.swift.org/browse/SR-2299
|
|
|
|
sudo ln -sf ld.gold /usr/bin/ld
|