.

Fangrui Song 2018-05-13 21:36:16 -07:00
parent 33d9567a24
commit 0066b04dad
2 changed files with 7 additions and 3 deletions

@ -55,6 +55,10 @@ option: `-DCMAKE_PREFIX_PATH="C:/Program Files/LLVM"`.
You may add directories for `include` and `lib` separated by a `;`, e.g. to use trunk clang:
`-DCMAKE_PREFIX_PATH="$HOME/Dev/llvm/release;$HOME/Dev/llvm/tools/clang"`
* `-DUSE_SHARED_LLVM=on`
Link against `libLLVM.so` instead of `libLLVMSupport.a libLLVMDemangle.a ...`
## Windows
If using Windows the automatically downloaded LLVM binaries are 64-bit; you should build cquery in 64-bit as well. You can tell cmake to build 64-bit using `-DCMAKE_GENERATOR_PLATFORM=x64`

@ -12,7 +12,7 @@ Detailed instructions at [[Build]].
git clone https://github.com/MaskRay/ccls --depth=1
cd ccls
git submodule update --init
cmake -DCMAKE_BUILD_TYPE=Release -Brelease -H.
cmake -H. -Brelease
cmake --build release
```
@ -22,8 +22,8 @@ If your `libstdc++` is too old (no C++17 header files) or have an old GCC/Clang,
* 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`, e.g. FreeBSD 11
* `cmake -H. -Brelease`, Linux with newer libstdc++, e.g. Arch Linux, FreeBSD 12
* `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
### Setup your editor