diff --git a/README.md b/README.md index 962706af30d2a..8d113b4465a9b 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,9 @@ For OS X, you need [the latest Xcode](https://developer.apple.com/xcode/download For Ubuntu, you'll need the following development dependencies: - sudo apt-get install git cmake ninja-build clang uuid-dev libicu-dev icu-devtools libbsd-dev libedit-dev libxml2-dev libsqlite3-dev swig libpython-dev libncurses5-dev pkg-config +```sh +sudo apt-get install git cmake ninja-build clang uuid-dev libicu-dev icu-devtools libbsd-dev libedit-dev libxml2-dev libsqlite3-dev swig libpython-dev libncurses5-dev pkg-config +``` Note: LLDB currently requires at least swig-1.3.40 but will successfully build with version 2 shipped with Ubuntu. @@ -60,22 +62,25 @@ with version 2 shipped with Ubuntu. If you are building on Ubuntu 14.04 LTS, you'll need to upgrade your clang compiler for C++14 support and create a symlink: - sudo apt-get install clang-3.6 - sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.6 100 - sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.6 100 +```sh +sudo apt-get install clang-3.6 +sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.6 100 +sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.6 100 +``` ### Getting Sources for Swift and Related Projects - git clone git@github.com:apple/swift.git swift - git clone git@github.com:apple/swift-llvm.git llvm - git clone git@github.com:apple/swift-clang.git clang - git clone git@github.com:apple/swift-lldb.git lldb - git clone git@github.com:apple/swift-cmark.git cmark - git clone git@github.com:apple/swift-llbuild.git llbuild - git clone git@github.com:apple/swift-package-manager.git swiftpm - git clone git@github.com:apple/swift-corelibs-xctest.git - git clone git@github.com:apple/swift-corelibs-foundation.git - +```sh +git clone git@github.com:apple/swift.git swift +git clone git@github.com:apple/swift-llvm.git llvm +git clone git@github.com:apple/swift-clang.git clang +git clone git@github.com:apple/swift-lldb.git lldb +git clone git@github.com:apple/swift-cmark.git cmark +git clone git@github.com:apple/swift-llbuild.git llbuild +git clone git@github.com:apple/swift-package-manager.git swiftpm +git clone git@github.com:apple/swift-corelibs-xctest.git +git clone git@github.com:apple/swift-corelibs-foundation.git +``` [CMake](http://cmake.org) is the core infrastructure used to configure builds of Swift and its companion projects; at least version 2.8.12.2 is required. Your @@ -84,7 +89,9 @@ On OS X, you can download the [CMake Binary Distribution](https://cmake.org/inst bundled as an application, copy it to /Applications, and add the embedded command line tools to your `PATH`: - export PATH=/Applications/CMake.app/Contents/bin:$PATH +```sh +export PATH=/Applications/CMake.app/Contents/bin:$PATH +``` [Ninja](http://martine.github.io/ninja/) is the current recommended build system for building Swift and is the default configuration generated by CMake. If