Install clang without compiling the soruce code
1 gedit /etc/apt/sourceslist
sudo apt-get update
sudo apt-get upgrade
wget -O - https://aptllvmorg/llvm-snapshotgpgkey|sudo apt-key add -
3
apt-get install clang-11 lldb-11 lld-11
apt-get install libc++-11-dev libc++abi-11-dev
4
cd /usr/bin
sudo ln -s clang-11 clang
sudo ln -s clang++-11 clang++
sudo ln -s /usr/bin/llvm-ar-11 /usr/bin/llvm-ar
sudo ln -s /usr/bin/llvm-as-11 /usr/bin/llvm-as
sudo ln -s /usr/bin/clangd-11 /usr/bin/clangd
sudo ln -s /usr/bin/clang-tidy-11 /usr/bin/clang-tidy
[1] https://aptllvmorg/
[2] https://linuxhintcom/install-llvm-ubuntu/
[3] https://dwijaybanewordpresscom/2018/07/20/llvm-clang-8-with-compiler-explorer/
欢迎分享,转载请注明来源:浪漫分享网
评论列表(0条)