mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-16 21:58:08 +00:00
clarify build more
parent
2a9acdc6eb
commit
9aabf31c41
@ -4,9 +4,12 @@
|
||||
2. Setup your editor
|
||||
3. Project setup: generate `compile_commands.json` or `.ccls`
|
||||
|
||||
### Build the language server
|
||||
### Build the ccls language server
|
||||
|
||||
Detailed instructions at [[Build]].
|
||||
* Mac OS X: [homebrew-ccls](https://github.com/twlz0ne/homebrew-ccls)
|
||||
* Arch Linux: [aur/ccls-git](https://aur.archlinux.org/packages/ccls-git)
|
||||
|
||||
For all others, 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
|
||||
@ -18,12 +21,10 @@ cmake --build release
|
||||
|
||||
The executable is at `release/ccls`.
|
||||
|
||||
If your `libstdc++` is too old (no C++17 header files) or have an old GCC/Clang, you may use the `-DCLANG_USE_BUNDLED_LIBC++=on` command at [[Build]].
|
||||
Additional notes: If your `libstdc++` is too old (no C++17 header files) or have an old GCC/Clang, you may use the `-DCLANG_USE_BUNDLED_LIBC++=on` command at [[Build]].
|
||||
|
||||
* Mac OS X: [homebrew-ccls](https://github.com/twlz0ne/homebrew-ccls)
|
||||
* Arch Linux: [aur/ccls-git](https://aur.archlinux.org/packages/ccls-git)
|
||||
* `cmake -H. -Brelease -DCLANG_USE_BUNDLED_LIBC++=on`, FreeBSD 11, Linux with `clang+llvm<6`
|
||||
* `cmake -H. -Brelease -DSYSTEM_CLANG=on -DUSE_SHARED_LLVM=on`, FreeBSD 12, Linux with newer libstdc++/clang/llvm, e.g. Arch Linux
|
||||
* FreeBSD 11, Linux with `clang+llvm<6`: `cmake -H. -Brelease -DCLANG_USE_BUNDLED_LIBC++=on`
|
||||
* FreeBSD 12, Linux with newer libstdc++/clang/llvm (e.g. Arch Linux): `cmake -H. -Brelease -DSYSTEM_CLANG=on -DUSE_SHARED_LLVM=on`
|
||||
|
||||
### Setup your editor
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user