Skip to content

Commit 0fc5727

Browse files
committed
Update docs for removal of Ubuntu 14.04 as a supported platform
1 parent ed1156b commit 0fc5727

File tree

2 files changed

+28
-6
lines changed

2 files changed

+28
-6
lines changed

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,7 @@ For Ubuntu, you'll need the following development dependencies:
6161
**Note:** LLDB currently requires at least `swig-1.3.40` but will successfully build
6262
with version 2 shipped with Ubuntu.
6363

64-
If you are building on Ubuntu 14.04 LTS, you'll need to upgrade your clang
65-
compiler for C++14 support and create a symlink:
66-
67-
sudo apt-get install clang-3.6
68-
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.6 100
69-
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.6 100
64+
Ubuntu 14.04 LTS is no longer supported. Unsupported build instructions for Ubuntu 14.04 LTS can be found [here](docs/Ubuntu14.md)
7065

7166
### Getting Sources for Swift and Related Projects
7267

docs/Ubuntu14.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Getting Started with Swift on Ubunutu 14.04
2+
3+
The Swift project no longer officially supports Ubuntu 14.04 as a build platform.
4+
It is highly recommended to upgrade to Ubuntu 16.04 or higher in order to have the best experience building and running the project.
5+
6+
If you cannot upgrade Ubuntu to a more up to date version, you should do follow these steps before checking out and build the Swift source code. These are not guaranteed to work in the future, and may break or be unreliable.
7+
8+
## Upgrade Clang
9+
You'll need to upgrade your clang compiler for C++14 support and create a symlink. The minimum required version of clang may change, and may not be available on Ubuntu 14.04 in the future.
10+
```bash
11+
sudo apt-get install clang-3.6
12+
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.6 100
13+
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.6 100
14+
```
15+
16+
## Upgrade CMake
17+
You'll need to upgrade your cmake toolchain to a supported version by building a local copy. The minimum required version of cmake may change, and may not be available on Ubuntu 14.04 in the future.</p>
18+
```bash
19+
wget http://www.cmake.org/files/v3.5/cmake-3.5.2.tar.gz
20+
tar xf cmake-3.5.2.tar.gz
21+
cd cmake-3.5.2
22+
./configure
23+
make
24+
sudo make install
25+
sudo update-alternatives --install /usr/bin/cmake cmake /usr/local/bin/cmake 1 --force
26+
cmake --version # This should print 3.5.2
27+
```

0 commit comments

Comments
 (0)