From 72512205995eb1882b06cdd866b4b7d2ce08672b Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 3 Oct 2018 09:26:28 -0700 Subject: [PATCH] Build --- Build.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Build.md b/Build.md index e18f2fe..0ef098e 100644 --- a/Build.md +++ b/Build.md @@ -25,11 +25,16 @@ are not supported at the moment. 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. - ``` + ```zsh % cmake -H. -BRelease -DCMAKE_INSTALL_PREFIX=/usr -DSYSTEM_CLANG=On % 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: ```zsh rm -r Release