Skip to content

Instantly share code, notes, and snippets.

Last active Sep 25, 2020
What would you like to do?
How To Build clangd
set -e
mkdir clangd
cd clangd/
svn co llvm
cd llvm/tools
svn co clang
cd ../..
cd llvm/tools/clang/tools
svn co extra
cd ../../../..
mkdir build
cd build
cmake -G "Unix Makefiles" ../llvm
make clangd
# Add binary to your $PATH
echo $PWD/bin | sudo tee /etc/paths.d/clangd
Copy link

kangzhiheng commented Apr 7, 2020

THX! I use your bash and make clangd (Line 20) successfully, but I have a problem when I run Line 23. I modified Line 23 to sudo update-alternatives --install /usr/bin/clangd clangd ./bin/clangd 100,it‘s OK. Anyway, thx your sharing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment