diff --git a/Getting-started.md b/Getting-started.md index a385503..a4dab29 100644 --- a/Getting-started.md +++ b/Getting-started.md @@ -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