From 544a4600a349aaee96b80fdc10ac5b21dac855e9 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sat, 14 Jul 2018 09:17:09 -0700 Subject: [PATCH] . --- Build.md | 2 +- Getting-started.md | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Build.md b/Build.md index 68c6a09..ea06be0 100644 --- a/Build.md +++ b/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 diff --git a/Getting-started.md b/Getting-started.md index 18ba2f8..8dfca44 100644 --- a/Getting-started.md +++ b/Getting-started.md @@ -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++`