mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 09:05:10 +00:00
.
parent
5409553129
commit
544a4600a3
2
Build.md
2
Build.md
@ -56,7 +56,7 @@ are not supported at the moment.
|
||||
|
||||
* `-DUSE_SHARED_LLVM=on`
|
||||
|
||||
Link against `libLLVM.so` instead of `libLLVMSupport.a libLLVMDemangle.a ...`
|
||||
Link against `libLLVM.so` instead of `libLLVMSupport.a libLLVMDemangle.a ...` This makes linking faster and the executable significantly smaller.
|
||||
|
||||
## Windows
|
||||
|
||||
|
@ -23,10 +23,11 @@ The executable is at `release/ccls`.
|
||||
|
||||
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]].
|
||||
|
||||
* Arch Linux: `cmake -H. -Brelease -DUSE_SHARED_LLVM=on`. `-DUSE_SHARED_LLVM=on` (optional) makes linked executable smaller.
|
||||
* Arch Linux: `cmake -H. -BRelease -DUSE_SHARED_LLVM=on`. `-DUSE_SHARED_LLVM=on` (optional) makes linked executable smaller.
|
||||
[aur/ccls-git](https://aur.archlinux.org/packages/ccls-git) currently does not work as it links against `extra/clang=6.0.1-1` which has a [known issue](https://github.com/MaskRay/ccls/issues/30).
|
||||
* FreeBSD 11: `cmake -H. -BRelease -DCLANG_USE_BUNDLED_LIBC++=on`
|
||||
* FreeBSD 12, `cmake -H. -BRelease -DSYSTEM_CLANG=on -DUSE_SHARED_LLVM=on`
|
||||
* FreeBSD
|
||||
+ with `llvm60` installed: `cmake -H. -BRelease -DSYSTEM_CLANG=on -DUSE_SHARED_LLVM=on -DCMAKE_PREFIX=/usr/local/llvm60`
|
||||
+ use libc++: `cmake -H. -BRelease -DCLANG_USE_BUNDLED_LIBC++=on`
|
||||
* Linux with newer libstdc++ and clang>=6: `cmake -H. -BRelease -DUSE_SHARED_LLVM=on`
|
||||
* Linux with `gcc < 7` but `clang >= 5`, `cmake -H. -BRelease -DCMAKE_CXX_COMPILER=clang++`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user