mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-24 16:45:07 +00:00
Build
parent
7ed906883d
commit
7251220599
7
Build.md
7
Build.md
@ -25,11 +25,16 @@ are not supported at the moment.
|
|||||||
Default: OFF
|
Default: OFF
|
||||||
Enable `SYSTEM_CLANG` if you want to link ccls against a system/local Clang instead of downloading Clang from releases.llvm.org during the configure process.
|
Enable `SYSTEM_CLANG` if you want to link ccls against a system/local Clang instead of downloading Clang from releases.llvm.org during the configure process.
|
||||||
|
|
||||||
```
|
```zsh
|
||||||
% cmake -H. -BRelease -DCMAKE_INSTALL_PREFIX=/usr -DSYSTEM_CLANG=On
|
% cmake -H. -BRelease -DCMAKE_INSTALL_PREFIX=/usr -DSYSTEM_CLANG=On
|
||||||
% cmake --build Release
|
% cmake --build Release
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You can also use the option to use a downloaded and unpacked clang+llvm archive:
|
||||||
|
```zsh
|
||||||
|
cmake -GNinja -H. -BBundled -DSYSTEM_CLANG=on -DCMAKE_PREFIX_PATH=$PWD/build/clang+llvm-7.0.0-x86_64-linux-gnu-ubuntu-14.04
|
||||||
|
```
|
||||||
|
|
||||||
cmake will download the releases.llvm.org archive for you. If you want to download it manually:
|
cmake will download the releases.llvm.org archive for you. If you want to download it manually:
|
||||||
```zsh
|
```zsh
|
||||||
rm -r Release
|
rm -r Release
|
||||||
|
Loading…
Reference in New Issue
Block a user