diff --git a/Build.md b/Build.md index 66c867d..d467f64 100644 --- a/Build.md +++ b/Build.md @@ -150,28 +150,14 @@ To build **ccls** on Gentoo Linux with system Clang+LLVM: `cmake -H. -BRelease - ### Ubuntu -To build from source you'll need `sudo apt install zlib1g-dev ncurses-dev` +To build from source you'll need `sudo apt install zlib1g-dev libncurses-dev` On Ubuntu 16.04 install g++-7 via [these directions](https://gist.github.com/jlblancoc/99521194aba975286c80f93e47966dc5) -#### Ubuntu Cosmic 18.10 +To build with system Clang+LLVM: `sudo apt install clang libclang-dev` -ccls 0.20181024.1 and later require LLVM 7, which is available on Ubuntu 18.10. -You can compile ccls against the system-installed LLVM instead needing to download LLVM separately. - -Download additional packages: - -```shell -sudo apt install -y clang libclang-dev libncurses-dev libtinfo5 llvm-dev -``` - -which should install their versioned counterparks (e.g. clang-7, libclang-7-dev, etc). - -Configure LLVM as so: - -```shell -cmake -H. -Bbuild \ - -DCMAKE_BUILD_TYPE=Release \ +```sh +cmake -H. -BRelease -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_PREFIX_PATH=/usr/lib/llvm-7 \ -DLLVM_INCLUDE_DIR=/usr/lib/llvm-7/include \ -DLLVM_BUILD_INCLUDE_DIR=/usr/include/llvm-7/ \