mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 15:45:08 +00:00
Ubuntu
parent
3e2509c840
commit
b14849a2a4
22
Build.md
22
Build.md
@ -150,28 +150,14 @@ To build **ccls** on Gentoo Linux with system Clang+LLVM: `cmake -H. -BRelease -
|
|||||||
|
|
||||||
### Ubuntu
|
### 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)
|
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.
|
```sh
|
||||||
You can compile ccls against the system-installed LLVM instead needing to download LLVM separately.
|
cmake -H. -BRelease -DCMAKE_BUILD_TYPE=Release \
|
||||||
|
|
||||||
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 \
|
|
||||||
-DCMAKE_PREFIX_PATH=/usr/lib/llvm-7 \
|
-DCMAKE_PREFIX_PATH=/usr/lib/llvm-7 \
|
||||||
-DLLVM_INCLUDE_DIR=/usr/lib/llvm-7/include \
|
-DLLVM_INCLUDE_DIR=/usr/lib/llvm-7/include \
|
||||||
-DLLVM_BUILD_INCLUDE_DIR=/usr/include/llvm-7/ \
|
-DLLVM_BUILD_INCLUDE_DIR=/usr/include/llvm-7/ \
|
||||||
|
Loading…
Reference in New Issue
Block a user