mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-24 16:45:07 +00:00
.
parent
33d9567a24
commit
0066b04dad
4
Build.md
4
Build.md
@ -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:
|
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"`
|
`-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
|
## 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`
|
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
|
git clone https://github.com/MaskRay/ccls --depth=1
|
||||||
cd ccls
|
cd ccls
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release -Brelease -H.
|
cmake -H. -Brelease
|
||||||
cmake --build release
|
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)
|
* Mac OS X: [homebrew-ccls](https://github.com/twlz0ne/homebrew-ccls)
|
||||||
* Arch Linux: [aur/ccls-git](https://aur.archlinux.org/packages/ccls-git)
|
* 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 -DCLANG_USE_BUNDLED_LIBC++=on`, FreeBSD 11, Linux with `clang+llvm<6`
|
||||||
* `cmake -H. -Brelease`, Linux with newer libstdc++, e.g. Arch Linux, FreeBSD 12
|
* `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
|
### Setup your editor
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user