mirror of
https://github.com/MaskRay/ccls.git
synced 2025-04-19 07:03:00 +00:00
Add MacPorts
parent
866b59d634
commit
fd76bb9b1d
@ -6,12 +6,9 @@
|
||||
|
||||
### Build the ccls language server
|
||||
|
||||
* Mac OS X: [homebrew-ccls](https://github.com/twlz0ne/homebrew-ccls)
|
||||
* Arch Linux: [aur/ccls-git](https://aur.archlinux.org/packages/ccls-git) `extra/clang-6.0.0-1` has a bug, don't use this for now
|
||||
If you are on Linux, building requires libstdc++ shipped with GCC > 7 for good support of C++17 header files, even if you use clang++.
|
||||
|
||||
For all others, below are the quick commands for the impatient. Detailed instructions can be found at [[Build]].
|
||||
|
||||
If you are on Linux, this requires libstdc++ shipped with GCC > 7 for good support of C++17 header files, even if you use clang++.
|
||||
Below are the quick commands for the impatient. Detailed instructions can be found at [[Build]].
|
||||
|
||||
```zsh
|
||||
git clone https://github.com/MaskRay/ccls --depth=1
|
||||
@ -26,11 +23,17 @@ The executable is at `Release/ccls`.
|
||||
FreeBSD and some Linux distributions provide system clang. You may use `-DSYSTEM_CLANG=on`.
|
||||
But caution is that you need to identify whether the clang library is compiled with `-DLLVM_ENABLE_RTTI=on`
|
||||
|
||||
* Arch Linux: [aur/ccls-git](https://aur.archlinux.org/packages/ccls-git). There was a [SIGSEGV issue](https://github.com/MaskRay/ccls/issues/30) which has been fixed. `cmake -H. -BRelease -DSYSTEM_CLANG=on -DUSE_SHARED_LLVM=on -DLLVM_ENABLE_RTTI=on`
|
||||
* Arch Linux
|
||||
+ [aur/ccls-git](https://aur.archlinux.org/packages/ccls-git). There was a [SIGSEGV issue](https://github.com/MaskRay/ccls/issues/30) which has been fixed.
|
||||
+ `cmake -H. -BRelease -DSYSTEM_CLANG=on -DUSE_SHARED_LLVM=on -DLLVM_ENABLE_RTTI=on`
|
||||
* FreeBSD
|
||||
+ with `llvm60` installed: `cmake -H. -BRelease -DSYSTEM_CLANG=on -DUSE_SHARED_LLVM=on -DCMAKE_PREFIX_PATH=/usr/local/llvm60`
|
||||
+ use libc++: `cmake -H. -BRelease -DCLANG_USE_BUNDLED_LIBC++=on`
|
||||
* Gentoo Linux: `cmake -H. -BRelease -DSYSTEM_CLANG=on -DCMAKE_PREFIX_PATH=/usr/lib/llvm/6 -DLLVM_ENABLE_RTTI=on`
|
||||
* Mac OS X
|
||||
+ Homebrew: https://github.com/twlz0ne/homebrew-ccls
|
||||
+ MacPorts: `cmake -H. -BRelease -DSYSTEM_CLANG=on -DCMAKE_CXX_COMPILER=clang++-mp-6.0 -DCMAKE_PREFIX_PATH=/opt/local/libexec/llvm-6.0/lib -DLLVM_ENABLE_RTTI=on -DUSE_SHARED_LLVM=on`
|
||||
* Windows. It is possible to compile with msys2 or build your own toolchain. But welcome to contribute detailed instructions https://github.com/MaskRay/ccls/issues/59
|
||||
|
||||
Debian: `apt install zlib1g-dev`
|
||||
Install g++-7 on Ubuntu 16.04: https://gist.github.com/jlblancoc/99521194aba975286c80f93e47966dc5
|
||||
|
Loading…
Reference in New Issue
Block a user