ubuntu源码编译ccls
# clone代码
git clone --depth=1 --recursive https://github.com/MaskRay/ccls
# 安装libclang-15
sudo apt-get install clang libclang-15-dev
# 编译
cmake -H. -BRelease -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH=/usr/lib/llvm-15 \
-DLLVM_INCLUDE_DIR=/usr/lib/llvm-15/include \
-DLLVM_BUILD_INCLUDE_DIR=/usr/include/llvm-15/
cmake --build Release
# 下面的不要也行
cd Release
sudo make install