glibc < 2013-04-25

Fangrui Song 2018-12-10 20:09:33 -08:00
parent 41c4d67491
commit bc2657db7d

@ -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