Created
May 14, 2019 01:58
-
-
Save binshengliu/3d3fba46471d1fa42fa5a2070abf52e0 to your computer and use it in GitHub Desktop.
Install Clang-8 on Debian Stretch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo echo -e 'deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch-8 main\ndeb-src http://apt.llvm.org/stretch/ llvm-toolchain-stretch-8 main\n' >> /etc/apt/sources.list | |
sudo aptitude install clang-8 clang-tools-8 clang-format-8 | |
sudo aptitude install libc++-8-dev libclang-8-dev libc++abi-8-dev | |
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-8 100 | |
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-8 100 | |
sudo update-alternatives --install /usr/bin/clangd clangd /usr/bin/clangd-8 100 | |
sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-8 100 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment