From bc2657db7de17ef0557d9a7d340aad74d8c6328a Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Mon, 10 Dec 2018 20:09:33 -0800 Subject: [PATCH] glibc < 2013-04-25 --- Getting-started.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Getting-started.md b/Getting-started.md index a9e4ea7..8c77d84 100644 --- a/Getting-started.md +++ b/Getting-started.md @@ -36,12 +36,12 @@ But caution is that you need to identify whether the clang library is compiled w + Homebrew: https://github.com/twlz0ne/homebrew-ccls + MacPorts: `cmake -H. -BRelease -DSYSTEM_CLANG=on -DCMAKE_CXX_COMPILER=clang++-mp-6.0 -DCMAKE_PREFIX_PATH=/opt/local/libexec/llvm-6.0 -DLLVM_ENABLE_RTTI=on -DUSE_SHARED_LLVM=on` * Windows. [[Build#windows]] - * Debian: `apt install zlib1g-dev ncurses-dev` - + Install g++-7 on Ubuntu 16.04: https://gist.github.com/jlblancoc/99521194aba975286c80f93e47966dc5 + `-DUSE_SHARED_LLVM=on` (optional, if you have `libLLVM.so` (provided by a llvm build with `-DLLVM_BUILD_LLVM_DYLIB=on`)) makes linked executable smaller. + `-G Ninja` to build with ninja. +* glibc < 2013-04-25 (e.g. RHEL 6 with modern GCC) + + `-DCMAKE_CXX_FLAGS=-D__STDC_FORMAT_MACROS` ### Setup your editor